cleaning up a lingering non-portable mktemp invocation.
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Tue, 10 Mar 2009 06:06:25 +0000 (02:06 -0400)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Tue, 10 Mar 2009 06:06:25 +0000 (02:06 -0400)
packaging/freebsd/security/monkeysphere/files/patch-src_monkeysphere-host [new file with mode: 0644]
src/monkeysphere-host

diff --git a/packaging/freebsd/security/monkeysphere/files/patch-src_monkeysphere-host b/packaging/freebsd/security/monkeysphere/files/patch-src_monkeysphere-host
new file mode 100644 (file)
index 0000000..9414c73
--- /dev/null
@@ -0,0 +1,11 @@
+--- src/monkeysphere-host
++++ src/monkeysphere-host
+@@ -103,7 +103,7 @@ update_gpg_pub_file() {
+ load_fingerprint() {
+     if [ -f "$HOST_KEY_FILE" ] ; then
+       HOST_FINGERPRINT=$( \
+-          (FUBAR=$(mktemp -d) && export GNUPGHOME="$FUBAR" \
++          (FUBAR=$(msmktempdir) && export GNUPGHOME="$FUBAR" \
+           && gpg --quiet --import \
+           && gpg --quiet --list-keys --with-colons --with-fingerprint \
+           && rm -rf "$FUBAR") <"$HOST_KEY_FILE" \
index b052ca1b0d12bcb0f5183d3ecb15afbc34ef2c40..6136399643eb70e46da8e19df0b1485d49e821a8 100755 (executable)
@@ -103,7 +103,7 @@ update_gpg_pub_file() {
 load_fingerprint() {
     if [ -f "$HOST_KEY_FILE" ] ; then
        HOST_FINGERPRINT=$( \
-           (FUBAR=$(mktemp -d) && export GNUPGHOME="$FUBAR" \
+           (FUBAR=$(msmktempdir) && export GNUPGHOME="$FUBAR" \
            && gpg --quiet --import \
            && gpg --quiet --list-keys --with-colons --with-fingerprint \
            && rm -rf "$FUBAR") <"$HOST_KEY_FILE" \