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>
(cherry picked from commit e5a64a3d6b1b601cbaf207468a6658d1a4fa0031)

Details

Committed
ansasakiJul 4 2019, 11:26 AM
Parents
rLIBSSH7ff0af75436e: tests: Check if known_hosts works with single unaccessible file
Branches
Unknown
Tags
Unknown