]> git.ipfire.org Git - thirdparty/libvirt.git/commit
remote: fix logic for known_hosts and keyfile checks
authorPino Toscano <ptoscano@redhat.com>
Tue, 10 Jan 2017 18:43:19 +0000 (19:43 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 11 Jan 2017 12:37:45 +0000 (13:37 +0100)
commit45c4a70c70978d3b5d6a02b27bcdf501da8185e4
treee0d63073db39bfad5e4b38e6429b8bd6a4d28e4c
parent408a1ce5f87d3a901693927bb108e714f25873fc
remote: fix logic for known_hosts and keyfile checks

If any of them is specified for the libssh and libssh2 drivers, there is
no need to depend on checks based on other paths: in particular, a
specified path for known_hosts was ignored if the local config directory
could not be determined, and the path for keyfile was ignored if the
home could not be determined.

Instead, lazily determine and use these two paths only in case they are
needed.
src/rpc/virnetclient.c