make sure authorized_keys options lines are skipped in keys-for-user
authorJameson Rollins <jrollins@finestructure.net>
Fri, 15 Oct 2010 20:47:21 +0000 (16:47 -0400)
committerJameson Rollins <jrollins@finestructure.net>
Fri, 15 Oct 2010 20:47:21 +0000 (16:47 -0400)
src/share/ma/keys_for_user

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