From 04d243b9323c11e85f3e2aeab8308b41e895835c Mon Sep 17 00:00:00 2001 From: Jameson Rollins Date: Fri, 15 Oct 2010 15:38:10 -0400 Subject: 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. --- src/share/ma/keys_for_user | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } -- cgit v1.2.3