On 08/26/2011 03:51 AM, xuhj@xxxxxxxxxxxxxxxxxx wrote:
From: soulxu<soulxu@soulxu-ThinkPad-T410.(none)> Signed-off-by: Xu He Jie<xuhj@xxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxx +1-801-349-2682 Libvirt virtualization library http://libvirt.org -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list