HomePhabricator

knownhosts: Read knownhosts file only if found

Authored by ansasaki on Jun 28 2019, 1:27 PM.

Description

knownhosts: Read knownhosts file only if found

Avoid trying to open the files if they are not accessible. This was
already treated as a non-error, but with this we save one function call.

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>

Details

Committed
ansasakiJul 4 2019, 10:29 AM
Parents
rLIBSSHad68de7271e6: tests: Check if known_hosts works with single unaccessible file
Branches
Unknown
Tags
Unknown