Description of problem:
Following error is shown every time I'm leaving virsh terminal:
[root@ibm-ls21-02 ~]# virsh
Welcome to virsh, the virtualization interactive terminal.
Type: 'help' for help with commands
'quit' to quit
virsh # quit
error: Failed to create '/root/.cache/libvirt/virsh': No such file or directory
[root@ibm-ls21-02 ~]#
Version-Release number of selected component (if applicable):
libvirt-client-0.9.13-3.fc18.x86_64
How reproducible:
always
Steps to Reproduce:
1. run "virsh"
2. exit from virsh
Actual results:
error: Failed to create '/root/.cache/libvirt/virsh': No such file or directory
Expected results:
no error message
This should be fixed by:
commit ea9509b9e8ef9f3100a829858e8a67a90c1b1d5b
Author: Osier Yang <jyang>
Date: Tue Jul 10 19:24:04 2012 +0800
virsh: Ensure the parents of the readline history path exists
Instead of changing the existed virFileMakePath to accept mode
argument and modifying a pile of its uses, this patch introduces
virFileMakePathWithMode, and use it instead of mkdir() to create
the readline history dir.