mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
util: Report error in virLogSetDefaultOutputToFile
Signed-off-by: Martin Kletzander <mkletzan@redhat.com> Reviewed-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
parent
47fb83f8b7
commit
ed5a93e4ed
@ -178,6 +178,7 @@ virLogSetDefaultOutputToFile(const char *binary, bool privileged)
|
||||
old_umask = umask(077);
|
||||
if (g_mkdir_with_parents(logdir, 0777) < 0) {
|
||||
umask(old_umask);
|
||||
virReportSystemError(errno, "%s", _("Could not create log directory"));
|
||||
return -1;
|
||||
}
|
||||
umask(old_umask);
|
||||
|
Loading…
x
Reference in New Issue
Block a user