summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJameson Rollins <jrollins@finestructure.net>2010-10-15 15:38:10 -0400
committerJameson Rollins <jrollins@finestructure.net>2010-10-15 16:28:09 -0400
commit04d243b9323c11e85f3e2aeab8308b41e895835c (patch)
treebb488b5a568062353d488f7662c8a240ff756365
parent2fd7ccf31d1397b18e5a3793d8bd7cdb374a63ec (diff)
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.
-rw-r--r--src/share/ma/keys_for_user4
1 files 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
}