On 08/26/2011 03:51 AM, xuhj(a)linux.vnet.ibm.com wrote:
From: soulxu<soulxu(a)soulxu-ThinkPad-T410.(none)>
Signed-off-by: Xu He Jie<xuhj(a)linux.vnet.ibm.com>
When libvirtd is running at non-root user, it won't create ${HOME}/.libvirt.
It will show error message:
17:44:16.838: 7035: error : virPidFileAcquirePath:322 : Failed to open pid file
Thanks for the report and potential patch.
+ old_umask = umask(022);
+ if (mkdir (run_dir, 0755)) {
However, this part is wrong; use virFileMakePath() from util.h to create
an arbitrary directory.
--
Eric Blake eblake(a)redhat.com +1-801-349-2682
Libvirt virtualization library
http://libvirt.org