m-s s: avoid failures when $TMPDIR has a space in it. (output might still be a bit...
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Sun, 16 Nov 2008 05:57:27 +0000 (00:57 -0500)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Sun, 16 Nov 2008 05:57:27 +0000 (00:57 -0500)
src/monkeysphere-server

index 5edaa4f2c9448dfabd74c535b536381641fea176..665d916ca416a5c6d545f72733cccd9c6b5b4e4f 100755 (executable)
@@ -137,7 +137,7 @@ show_server_key() {
     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: "
-    ssh-keygen -l -f $tmpkey | awk '{ print $1, $2, $4 }'
+    ssh-keygen -l -f "$tmpkey" | awk '{ print $1, $2, $4 }'
     rm -rf "$tmpkey"
     echo -n "OpenPGP fingerprint: "
     echo "$fingerprint"