fix the marginal ui output so that it's not prefixed by the
authorJameson Graef Rollins <jrollins@finestructure.net>
Sat, 7 Mar 2009 17:59:36 +0000 (12:59 -0500)
committerJameson Graef Rollins <jrollins@finestructure.net>
Sat, 7 Mar 2009 17:59:36 +0000 (12:59 -0500)
LOG_PREFIX.  also make sure to always export the LOG_PREFIX, so that
it gets passed to subprocces su_monkeysphere_user.

.gitignore
packaging/debian/changelog
src/monkeysphere
src/monkeysphere-authentication
src/monkeysphere-host
src/share/m/ssh_proxycommand

index eb4b70664ebf4b4d92b6e8e77ae002c689972069..8316a5cbcaa767e149b79ee1616cac24ec1627e2 100644 (file)
@@ -1,10 +1,5 @@
 *~
 *.[ao]
-debian/files
-debian/monkeysphere.debhelper.log
-debian/monkeysphere.substvars
-debian/monkeysphere/
-src/keytrans/openpgp2ssh
 repo/db
 repo/dists
 repo/pool
index 873b0587785f389c263c7ea578cb973daeaeaac2..093c15713d59e025e6200ebe85e4b149d8e1d630 100644 (file)
@@ -1,3 +1,10 @@
+monkeysphere (0.25-1~pre) UNRELEASED; urgency=low
+
+  * New upstream release:
+    - fix the marginal ui output so that it's not prefixed by the LOG_PREFIX
+
+ -- Jameson Graef Rollins <jrollins@finestructure.net>  Sat, 07 Mar 2009 12:28:13 -0500
+
 monkeysphere (0.24-1) unstable; urgency=low
 
   * New upstream release:
index f721108ef5e9d59688566d0dd1a539cb5853823f..2e3bc16f8e96180d67f6f3d17429295163356a47 100755 (executable)
@@ -182,7 +182,9 @@ AUTHORIZED_KEYS=${MONKEYSPHERE_AUTHORIZED_KEYS:=$AUTHORIZED_KEYS}
 AUTHORIZED_USER_IDS=${MONKEYSPHERE_AUTHORIZED_USER_IDS:="${MONKEYSPHERE_HOME}/authorized_user_ids"}
 REQUIRED_HOST_KEY_CAPABILITY=${MONKEYSPHERE_REQUIRED_HOST_KEY_CAPABILITY:="a"}
 REQUIRED_USER_KEY_CAPABILITY=${MONKEYSPHERE_REQUIRED_USER_KEY_CAPABILITY:="a"}
-LOG_PREFIX=${MONKEYSPHERE_LOG_PREFIX:='ms: '}
+# note that only using '=' instead of ':=' tests only if the variable
+# in unset, not if it's "null"
+LOG_PREFIX=${MONKEYSPHERE_LOG_PREFIX='ms: '}
 
 # export GNUPGHOME and make sure gpg home exists with proper
 # permissions
index 85ff04fc5ddd31b74c0c776530ee4f043afb53d6..5b981537db831c2c26f280662b8f61b5ff594ee5 100755 (executable)
@@ -144,6 +144,7 @@ export GNUPGHOME_CORE
 export GNUPGHOME_SPHERE
 export GNUPGHOME
 export CORE_KEYLENGTH
+export LOG_PREFIX
 
 # get subcommand
 COMMAND="$1"
index b052ca1b0d12bcb0f5183d3ecb15afbc34ef2c40..da7fc9cec0da8ab7d66607c2cc278c84e2c9e03c 100755 (executable)
@@ -242,6 +242,7 @@ export PROMPT
 export GNUPGHOME_HOST
 export GNUPGHOME
 export HOST_FINGERPRINT
+export LOG_PREFIX
 
 # get subcommand
 COMMAND="$1"
index abe068ddc9467aa1aae7c4679ce724a84278e3ec..7ab4bec1331e265eb5b7185cc7eac0b6b753b871 100644 (file)
@@ -18,9 +18,9 @@
 # "marginal case" ouput in the case that there is not a full
 # validation path to the host
 output_no_valid_key() {
-    local returnCode=0
-    local sshKeyOffered
     local userID
+    local sshKeyOffered
+    local gpgOut
     local type
     local validity
     local keyid
@@ -30,9 +30,12 @@ output_no_valid_key() {
     local tmpkey
     local sshFingerprint
     local gpgSigOut
+    local returnCode=0
 
     userID="ssh://${HOSTP}"
 
+    LOG_PREFIX=
+
     cat <<EOF | log info
 -------------------- Monkeysphere warning -------------------
 Monkeysphere found OpenPGP keys for this hostname, but none had full validity.