projects
/
monkeysphere.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04d243b
)
make sure authorized_keys options lines are skipped in keys-for-user
author
Jameson Rollins
<jrollins@finestructure.net>
Fri, 15 Oct 2010 20:47:21 +0000
(16:47 -0400)
committer
Jameson Rollins
<jrollins@finestructure.net>
Fri, 15 Oct 2010 20:47:21 +0000
(16:47 -0400)
src/share/ma/keys_for_user
patch
|
blob
|
history
diff --git
a/src/share/ma/keys_for_user
b/src/share/ma/keys_for_user
index 01924ea20f6e20184abb4d9d68f201ed6424c9f8..6f618288f531ad06a3923295bac8b5338e24bb51 100644
(file)
--- 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