From: Jameson Rollins Date: Fri, 15 Oct 2010 20:47:21 +0000 (-0400) Subject: make sure authorized_keys options lines are skipped in keys-for-user X-Git-Tag: monkeysphere_0.33-1~2^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=90c2bffc01fd20699e18b2eb875194c574c9d94b;p=monkeysphere.git make sure authorized_keys options lines are skipped in keys-for-user --- diff --git a/src/share/ma/keys_for_user b/src/share/ma/keys_for_user index 01924ea..6f61828 100644 --- a/src/share/ma/keys_for_user +++ b/src/share/ma/keys_for_user @@ -43,6 +43,9 @@ export GNUPGHOME # extract user IDs from authorized_user_ids file IFS=$'\n' for line in $(meat "$authorizedUserIDs") ; do + if [[ "$line" =~ ^[[:space:]] ]] ; then + continue + fi printf '%s' "$line" | \ su_monkeysphere_user ". ${SYSSHAREDIR}/common; read X; keys_for_userid \"\$X\"" || true done