diff options
author | Jameson Rollins <jrollins@finestructure.net> | 2010-10-15 16:47:21 -0400 |
---|---|---|
committer | Jameson Rollins <jrollins@finestructure.net> | 2010-10-15 16:47:21 -0400 |
commit | 90c2bffc01fd20699e18b2eb875194c574c9d94b (patch) | |
tree | 7e55cfcfaeb6ff0f91ef99174f856a76bd331ef3 | |
parent | 04d243b9323c11e85f3e2aeab8308b41e895835c (diff) |
make sure authorized_keys options lines are skipped in keys-for-user
-rw-r--r-- | src/share/ma/keys_for_user | 3 |
1 files changed, 3 insertions, 0 deletions
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 |