From: Jameson Graef Rollins Date: Sat, 7 Mar 2009 17:59:36 +0000 (-0500) Subject: fix the marginal ui output so that it's not prefixed by the X-Git-Tag: monkeysphere_0.25~33^2~3 X-Git-Url: https://codewiz.org/gitweb?p=monkeysphere.git;a=commitdiff_plain;h=cea48901e37c2c6a370cbbdb5ceee2e197182c71;ds=sidebyside fix the marginal ui output so that it's not prefixed by the LOG_PREFIX. also make sure to always export the LOG_PREFIX, so that it gets passed to subprocces su_monkeysphere_user. --- diff --git a/.gitignore b/.gitignore index eb4b706..8316a5c 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/packaging/debian/changelog b/packaging/debian/changelog index 873b058..093c157 100644 --- a/packaging/debian/changelog +++ b/packaging/debian/changelog @@ -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 Sat, 07 Mar 2009 12:28:13 -0500 + monkeysphere (0.24-1) unstable; urgency=low * New upstream release: diff --git a/src/monkeysphere b/src/monkeysphere index f721108..2e3bc16 100755 --- a/src/monkeysphere +++ b/src/monkeysphere @@ -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 diff --git a/src/monkeysphere-authentication b/src/monkeysphere-authentication index 85ff04f..5b98153 100755 --- a/src/monkeysphere-authentication +++ b/src/monkeysphere-authentication @@ -144,6 +144,7 @@ export GNUPGHOME_CORE export GNUPGHOME_SPHERE export GNUPGHOME export CORE_KEYLENGTH +export LOG_PREFIX # get subcommand COMMAND="$1" diff --git a/src/monkeysphere-host b/src/monkeysphere-host index b052ca1..da7fc9c 100755 --- a/src/monkeysphere-host +++ b/src/monkeysphere-host @@ -242,6 +242,7 @@ export PROMPT export GNUPGHOME_HOST export GNUPGHOME export HOST_FINGERPRINT +export LOG_PREFIX # get subcommand COMMAND="$1" diff --git a/src/share/m/ssh_proxycommand b/src/share/m/ssh_proxycommand index abe068d..7ab4bec 100644 --- a/src/share/m/ssh_proxycommand +++ b/src/share/m/ssh_proxycommand @@ -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 <