HomePhabricator

knownhosts: Read knownhosts file only if found

Authored by Anderson Toshiyuki Sasaki <ansasaki@redhat.com> 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>