fix revoke_key typo in creating temporary directory
authorMicah Anderson <micah@riseup.net>
Fri, 1 Oct 2010 14:07:46 +0000 (10:07 -0400)
committerMicah Anderson <micah@riseup.net>
Fri, 1 Oct 2010 14:37:53 +0000 (10:37 -0400)
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

src/share/mh/revoke_key

index 5a013e0db67518842b3000578bf364d5f3ee06e1..9077e4c0243c0f49501156178d7e017ee8b2aac8 100644 (file)
@@ -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