HomePhabricator

knownhosts: Do not fail if global known_hosts file is inaccessible

Authored by Anderson Toshiyuki Sasaki <ansasaki@redhat.com> on Jun 27 2019, 7:29 PM.

Description

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 <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
(cherry picked from commit 4adb13d9e31506e8bb36fedd9a81f3e70f8545cc)

Details

Committed
asnJun 28 2019, 8:06 AM
Parents
rLIBSSH3bc5f88f77c3: connect: Code style formatting
Branches
Unknown
Tags
Unknown