summaryrefslogtreecommitdiff
path: root/src/monkeysphere
diff options
context:
space:
mode:
authorJameson Graef Rollins <jrollins@phys.columbia.edu>2008-06-20 00:44:36 -0400
committerJameson Graef Rollins <jrollins@phys.columbia.edu>2008-06-20 00:44:36 -0400
commit736054b1c1d8e3433d709ea8bbeb1b8ac7257927 (patch)
treeee48b83cf85aa62c22663df1402f79b8b4feab6b /src/monkeysphere
parent6d39b726c0742d46bb697612c13dd77628e8362c (diff)
add file locking to known_hosts and authorized_keys
Diffstat (limited to 'src/monkeysphere')
-rwxr-xr-xsrc/monkeysphere10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/monkeysphere b/src/monkeysphere
index a433701..58f0fdc 100755
--- a/src/monkeysphere
+++ b/src/monkeysphere
@@ -140,12 +140,9 @@ case $COMMAND in
# if hosts are specified on the command line, process just
# those hosts
if [ "$1" ] ; then
- for host ; do
- process_host_known_hosts "$host"
- done
- log "known_hosts file updated."
+ process_hosts_known_hosts "$@"
- # otherwise, if no hosts are specified, process every user
+ # otherwise, if no hosts are specified, process every host
# in the user's known_hosts file
else
if [ ! -s "$KNOWN_HOSTS" ] ; then
@@ -153,8 +150,9 @@ case $COMMAND in
fi
log "processing known_hosts file..."
process_known_hosts
- log "known_hosts file updated."
fi
+
+ log "known_hosts file updated."
;;
'update-authorized_keys'|'update-authorized-keys'|'a')