summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2010-10-01 10:07:46 -0400
committerMicah Anderson <micah@riseup.net>2010-10-01 10:37:53 -0400
commitd37829e6c2dfdcac912a9d6e9203e62343f3dd01 (patch)
tree3278c7720fad7568e2f390bfb57d63f0aff8f1d3
parent9b000f2f9abe2a1cd2af07038fb86d39aa89b29d (diff)
fix revoke_key typo in creating temporary directory
fix variable specifying which key to revoke monkeysphere-host revoke-key <key-id> would produce the following errors, this commit fixes that: Really publish this cert to zimmermann.mayfirst.org ? (Y/n) y /usr/share/monkeysphere/mh/revoke_key: line 96: mkmstempdir: command not found gpg: new configuration file `/root/.gnupg/gpg.conf' created gpg: WARNING: options in `/root/.gnupg/gpg.conf' are not yet active during this run gpg: "0x!" not a key ID: skipping
-rw-r--r--src/share/mh/revoke_key4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/share/mh/revoke_key b/src/share/mh/revoke_key
index 5a013e0..9077e4c 100644
--- a/src/share/mh/revoke_key
+++ b/src/share/mh/revoke_key
@@ -93,10 +93,10 @@ y
if [ "${really/n/N}" = 'N' ] ; then
printf "Not publishing.\n" >&2
else
- local newhome=$(mkmstempdir)
+ local newhome=$(msmktempdir)
GNUPGHOME="$newhome" gpg --no-tty --quiet --import < "$HOST_KEY_FILE"
GNUPGHOME="$newhome" gpg --no-tty --quiet --import <<< "$revcert"
- GNUPGHOME="$newhome" gpg --keyserver "$KEYSERVER" --send "0x${HOST_FINGERPRINT}!"
+ GNUPGHOME="$newhome" gpg --keyserver "$KEYSERVER" --send "0x${keyID}!"
rm -rf "$newhome"
fi
fi