]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Ensure the parents of the readline history path exists
authorOsier Yang <jyang@redhat.com>
Tue, 10 Jul 2012 11:24:04 +0000 (19:24 +0800)
committerOsier Yang <jyang@redhat.com>
Tue, 10 Jul 2012 13:37:13 +0000 (21:37 +0800)
commitea9509b9e8ef9f3100a829858e8a67a90c1b1d5b
treea8c9ca24b7165d9da668999949550d0f266e6a4f
parentfee00a680722ee788866cdc0f946add313f21df8
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.
src/libvirt_private.syms
src/util/util.c
src/util/util.h
tools/virsh.c