summaryrefslogtreecommitdiff
path: root/src/monkeysphere-host
diff options
context:
space:
mode:
authorJameson Graef Rollins <jrollins@finestructure.net>2009-02-18 20:56:14 -0500
committerJameson Graef Rollins <jrollins@finestructure.net>2009-02-18 20:56:14 -0500
commit62374dd1c16a2719202955ad3fe878be5cc14dba (patch)
treeb2d4480ad337ee204719b180613c58e21c7ca392 /src/monkeysphere-host
parent88b19565bced6d9ec9b035d1f9fe51ce6567923b (diff)
new msmktempdir function, to simplify making temporary directories. remove MHTMPDIR, since it's not needed.
Diffstat (limited to 'src/monkeysphere-host')
-rwxr-xr-xsrc/monkeysphere-host6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/monkeysphere-host b/src/monkeysphere-host
index 7e8dd27..a86a8c9 100755
--- a/src/monkeysphere-host
+++ b/src/monkeysphere-host
@@ -32,10 +32,6 @@ MHSHAREDIR="${SYSSHAREDIR}/mh"
# datadir for host functions
MHDATADIR="${SYSDATADIR}/host"
-# temp directory for temp gnupghome directories for add_revoker
-MHTMPDIR="${MHDATADIR}/tmp"
-export MHTMPDIR
-
# host pub key files
HOST_KEY_FILE="${SYSDATADIR}/ssh_host_rsa_key.pub.gpg"
@@ -171,7 +167,7 @@ show_key() {
local GNUPGHOME
# tmp gpghome dir
- export GNUPGHOME=$(mktemp -d)
+ export GNUPGHOME=$(msmktempdir)
# trap to remove tmp dir if break
trap "rm -rf $GNUPGHOME" EXIT