mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
util: Don't check the output of virGetUserCacheDirectory()
virGetUserCacheDirectory() *never* *ever* returns NULL, making the checks for it completely unnecessary. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
e09f723bf1
commit
94c227de0a
@ -180,8 +180,7 @@ virLogSetDefaultOutputToFile(const char *binary, bool privileged)
|
||||
virLogDefaultOutput = g_strdup_printf("%d:file:%s/log/libvirt/%s.log",
|
||||
virLogDefaultPriority, LOCALSTATEDIR, binary);
|
||||
} else {
|
||||
if (!(logdir = virGetUserCacheDirectory()))
|
||||
return -1;
|
||||
logdir = virGetUserCacheDirectory();
|
||||
|
||||
old_umask = umask(077);
|
||||
if (virFileMakePath(logdir) < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user