This is an attempt to fix #600304 by properly passing the string
litteral in to be processed, instead of escaping problematic
characters.
local uname
local authorizedUserIDs
local line
-local userIDs
# get users from command line
uname="$1"
# 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
}