knownhosts: Do not fail if global known_hosts file is inaccessible
Previously, if the global known_hosts file (default:
/etc/ssh/ssh_known_hosts) was inaccessible, the check for known hosts
failed. This makes the check to fail if both files are inaccessible.
Signed-off-by: Anderson Toshiyuki Sasaki <firstname.lastname@example.org>
Reviewed-by: Andreas Schneider <email@example.com>
Reviewed-by: Jakub Jelen <firstname.lastname@example.org>
(cherry picked from commit 4adb13d9e31506e8bb36fedd9a81f3e70f8545cc)