Description of problem:
No $HOME/.config dir created if connect libvirtd with libssh
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.When connect libvirtd with libssh, it reports error if no other service has created /root/.config dir before:
# virsh -c qemu+libssh://yafu-70-118/system
Accept SSH host key with hash '35:f3:f4:a2:11:b5:01:0e:12:d6:7e:57:4b:b0:45:98:21:80:a7:41' for host 'yafu-70-118:22' (y/n)?: y
error: failed to connect to the hypervisor
error: libssh transport error: failed to write known_host file '/root/.config/libvirt/known_hosts': Cannot create /root/.config/libvirt directory.
Report error because no $HOME/.config dir created.
Should create both $HOME/.config dir and create $HOME/.config/libvirt dir.
1.If other service created $HOME/.config dir, it can create /root/.config/libvirt dir successfully.
Upstream issue tracker:
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (Moderate: libssh security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.