Commit 3ebb30f
committed
Store the log file in $TMPDIR instead of /tmp
Instead of using `/tmp` as the base we now use the value of `$TMPDIR`
which is user-scoped. This means that the path of the log file is no
longer `/tmp/pinentry-touchid.log` but `$TMPDIR/pinentry-touchid.log`.
This is particularly important in multiuser environments where the first
user would get ownership of the file and actions from other users would
fail.
Fixes #131 parent 6173b1d commit 3ebb30f
2 files changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
48 | 51 | | |
49 | 52 | | |
50 | | - | |
51 | | - | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
0 commit comments