attempt to fix apostroproblem in ma/keys-for-user
authorJameson Rollins <jrollins@finestructure.net>
Fri, 15 Oct 2010 19:38:10 +0000 (15:38 -0400)
committerJameson Rollins <jrollins@finestructure.net>
Fri, 15 Oct 2010 20:28:09 +0000 (16:28 -0400)
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

index f48d5d33e6c9ef4317080cede626479a8f3d8942..01924ea20f6e20184abb4d9d68f201ed6424c9f8 100644 (file)
@@ -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
 
 }