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-server | |
parent | e027e9199d81b656032963497b1d7b3e6808b3a4 (diff) |
making invocations of mktemp portable (FreeBSD does not have a default value for the [template] arg
Diffstat (limited to 'src/monkeysphere-server')
-rwxr-xr-x | src/monkeysphere-server | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/monkeysphere-server b/src/monkeysphere-server index 4cda008..e590f3c 100755 --- a/src/monkeysphere-server +++ b/src/monkeysphere-server @@ -120,7 +120,7 @@ show_server_key() { # dumping to a file named ' ' so that the ssh-keygen output # doesn't claim any potentially bogus hostname(s): - tmpkey=$(mktemp -d) + tmpkey=$(mktemp -d ${TMPDIR:-/tmp}/tmp.XXXXXXXXXX) gpg_authentication "--export $fingerprint" | openpgp2ssh "$fingerprint" 2>/dev/null > "$tmpkey/ " echo -n "ssh fingerprint: " (cd "$tmpkey" && ssh-keygen -l -f ' ' | awk '{ print $2 }') @@ -188,7 +188,7 @@ update_users() { fi # make temporary directory - TMPDIR=$(mktemp -d) + TMPDIR=$(mktemp -d ${TMPDIR:-/tmp}/tmp.XXXXXXXXXX) # trap to delete temporary directory on exit trap "rm -rf $TMPDIR" EXIT |