From: Jameson Rollins Date: Fri, 15 Oct 2010 19:38:10 +0000 (-0400) Subject: attempt to fix apostroproblem in ma/keys-for-user X-Git-Tag: monkeysphere_0.33-1~2^2~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=04d243b9323c11e85f3e2aeab8308b41e895835c;p=monkeysphere.git attempt to fix apostroproblem in ma/keys-for-user This is an attempt to fix #600304 by properly passing the string litteral in to be processed, instead of escaping problematic characters. --- diff --git a/src/share/ma/keys_for_user b/src/share/ma/keys_for_user index f48d5d3..01924ea 100644 --- a/src/share/ma/keys_for_user +++ b/src/share/ma/keys_for_user @@ -19,7 +19,6 @@ keys_for_user() { local uname local authorizedUserIDs local line -local userIDs # get users from command line uname="$1" @@ -44,7 +43,8 @@ export GNUPGHOME # extract user IDs from authorized_user_ids file IFS=$'\n' for line in $(meat "$authorizedUserIDs") ; do - su_monkeysphere_user ". ${SYSSHAREDIR}/common; keys_for_userid '$line'" + printf '%s' "$line" | \ + su_monkeysphere_user ". ${SYSSHAREDIR}/common; read X; keys_for_userid \"\$X\"" || true done }