Signed-off-by: Martin Kletzander <mkletzan(a)redhat.com>
---
src/util/virlog.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/util/virlog.c b/src/util/virlog.c
index bf791d901a24..e368cada6024 100644
--- a/src/util/virlog.c
+++ b/src/util/virlog.c
@@ -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);
--
2.34.1