diff options
author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2008-09-12 02:19:28 -0400 |
---|---|---|
committer | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2008-09-12 02:19:28 -0400 |
commit | 5c3ec72ee2c2f5a0d6d942b0998ba8cc3369f608 (patch) | |
tree | 2561ec272b3dc8dccb41a350a4cd655c6b9e1842 /src/monkeysphere | |
parent | e027e9199d81b656032963497b1d7b3e6808b3a4 (diff) |
making invocations of mktemp portable (FreeBSD does not have a default value for the [template] arg
Diffstat (limited to 'src/monkeysphere')
-rwxr-xr-x | src/monkeysphere | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/monkeysphere b/src/monkeysphere index 512d608..36b44dd 100755 --- a/src/monkeysphere +++ b/src/monkeysphere @@ -147,7 +147,7 @@ EOF ) log verbose "generating subkey..." - fifoDir=$(mktemp -d) + fifoDir=$(mktemp -d ${TMPDIR:-/tmp}/tmp.XXXXXXXXXX) (umask 077 && mkfifo "$fifoDir/pass") echo "$editCommands" | gpg --passphrase-fd 3 3< "$fifoDir/pass" --expert --command-fd 0 --edit-key "$keyID" & @@ -210,7 +210,7 @@ You might want to run 'gpg --gen-key'." You might want to 'monkeysphere gen-subkey'" fi - workingdir=$(mktemp -d) + workingdir=$(mktemp -d ${TMPDIR:-/tmp}/tmp.XXXXXXXXXX) umask 077 mkfifo "$workingdir/passphrase" keysuccess=1 |