diff options
author | Jameson Graef Rollins <jrollins@finestructure.net> | 2009-02-18 20:56:14 -0500 |
---|---|---|
committer | Jameson Graef Rollins <jrollins@finestructure.net> | 2009-02-18 20:56:14 -0500 |
commit | 62374dd1c16a2719202955ad3fe878be5cc14dba (patch) | |
tree | b2d4480ad337ee204719b180613c58e21c7ca392 /src/share/m/gen_subkey | |
parent | 88b19565bced6d9ec9b035d1f9fe51ce6567923b (diff) |
new msmktempdir function, to simplify making temporary directories. remove MHTMPDIR, since it's not needed.
Diffstat (limited to 'src/share/m/gen_subkey')
-rw-r--r-- | src/share/m/gen_subkey | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/share/m/gen_subkey b/src/share/m/gen_subkey index cbefaa3..19d384d 100644 --- a/src/share/m/gen_subkey +++ b/src/share/m/gen_subkey @@ -114,7 +114,7 @@ EOF ) log verbose "generating subkey..." - fifoDir=$(mktemp -d ${TMPDIR:-/tmp}/tmp.XXXXXXXXXX) + fifoDir=$(msmktempdir) (umask 077 && mkfifo "$fifoDir/pass") echo "$editCommands" | gpg --passphrase-fd 3 3< "$fifoDir/pass" --expert --command-fd 0 --edit-key "$keyID" & |