summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2008-11-15 18:55:42 -0500
committerMicah Anderson <micah@riseup.net>2008-11-15 18:55:42 -0500
commita4983d24c8e79729deaa02602b742eace6d09f86 (patch)
treed7372f6ba5bce32f515cd47ac10809b759fa66e8 /src
parentcdfb653480aa9b14deffd54ea7f497c27d5abdb4 (diff)
change from using a filename that is a just a space to an actual temporary file
Diffstat (limited to 'src')
-rwxr-xr-xsrc/monkeysphere-server6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/monkeysphere-server b/src/monkeysphere-server
index e78903b..5edaa4f 100755
--- a/src/monkeysphere-server
+++ b/src/monkeysphere-server
@@ -134,10 +134,10 @@ 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 ${TMPDIR:-/tmp}/tmp.XXXXXXXXXX) || failure "Could not create temporary directory!"
- gpg_authentication "--export $fingerprint" | openpgp2ssh "$fingerprint" 2>/dev/null > "$tmpkey/ "
+ tmpkey=$(mktemp ${TMPDIR:-/tmp}/tmp.XXXXXXXXXX) || failure "Could not create temporary directory!"
+ gpg_authentication "--export $fingerprint" | openpgp2ssh "$fingerprint" 2>/dev/null > "$tmpkey"
echo -n "ssh fingerprint: "
- (cd "$tmpkey" && ssh-keygen -l -f ' ' | awk '{ print $2 }')
+ ssh-keygen -l -f $tmpkey | awk '{ print $1, $2, $4 }'
rm -rf "$tmpkey"
echo -n "OpenPGP fingerprint: "
echo "$fingerprint"