From 50f1ff1c641bd02e96a08929ae1c0761e4a5a07d Mon Sep 17 00:00:00 2001 From: Jameson Rollins Date: Mon, 18 Oct 2010 23:32:21 -0400 Subject: [PATCH] fix update_known_hosts to create proper initial temp file --- src/share/m/update_known_hosts | 2 ++ 1 file changed, 2 insertions(+) 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}" -- 2.26.2