From: Jameson Rollins Date: Tue, 19 Oct 2010 03:32:21 +0000 (-0400) Subject: fix update_known_hosts to create proper initial temp file X-Git-Tag: monkeysphere_0.34-1~1^2~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=50f1ff1c641bd02e96a08929ae1c0761e4a5a07d;p=monkeysphere.git fix update_known_hosts to create proper initial temp file --- 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}"