diff options
author | Jameson Rollins <jrollins@finestructure.net> | 2010-10-18 23:32:21 -0400 |
---|---|---|
committer | Jameson Rollins <jrollins@finestructure.net> | 2010-10-18 23:32:21 -0400 |
commit | 50f1ff1c641bd02e96a08929ae1c0761e4a5a07d (patch) | |
tree | effe0dea0f4b8dd6aa2885c23bac01d8a4d8ff67 | |
parent | 7ad88e0d97739cf1fd7912106e196a0ff8ccc511 (diff) |
fix update_known_hosts to create proper initial temp file
-rw-r--r-- | src/share/m/update_known_hosts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/share/m/update_known_hosts b/src/share/m/update_known_hosts index a031118..737666d 100644 --- a/src/share/m/update_known_hosts +++ b/src/share/m/update_known_hosts @@ -44,6 +44,8 @@ update_known_hosts() { trap "lock remove $KNOWN_HOSTS; rm -f $tmpFile" EXIT + cat "$KNOWN_HOSTS" >"$tmpFile" + for host ; do FILE_TYPE='known_hosts' process_keys_for_file "$tmpFile" "ssh://${host}" |