]> xenbits.xensource.com Git - libvirt.git/commit
remote: do not check for an existing config dir
authorPino Toscano <ptoscano@redhat.com>
Tue, 10 Jan 2017 18:43:20 +0000 (19:43 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 11 Jan 2017 12:38:04 +0000 (13:38 +0100)
commit1a5de3fe2e72992cfb614fea2acb0335459ebdea
tree275f13260f91013e79f0e5db99bb553e85dacbba
parent45c4a70c70978d3b5d6a02b27bcdf501da8185e4
remote: do not check for an existing config dir

When composing the path to the default known_hosts file (for the libssh
and libssh2 drivers), do not check whether the configuration directory
(determined by virGetUserConfigDirectory()) exists: both the drivers can
handle non-existing files, and are able to create them (and their
directories) in that case.

This adds a small behaviour change: before, the key for an unknown host,
and manually accepted, was saved only if the configuration directory
existed -- a bit incoherent behaviour though.
src/rpc/virnetclient.c