nwfilter: Remove unprivileged code path to set base

Commit id f8ab364c removed ability to run this driver unprivileged. Coverity
detected the check and flagged it.
This commit is contained in:
John Ferlan 2013-01-08 16:21:50 -05:00 committed by Eric Blake
parent d507b97185
commit aafe41971c

View File

@ -219,14 +219,8 @@ nwfilterDriverStartup(bool privileged ATTRIBUTE_UNUSED,
goto error;
}
if (privileged) {
if ((base = strdup(SYSCONFDIR "/libvirt")) == NULL)
goto out_of_memory;
} else {
base = virGetUserConfigDirectory();
if (!base)
goto error;
}
if ((base = strdup(SYSCONFDIR "/libvirt")) == NULL)
goto out_of_memory;
if (virAsprintf(&driverState->configDir,
"%s/nwfilter", base) == -1)