mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
admin: Don't check the output of virGetUserRuntimeDirectory()
virGetUserRuntimeDirectory() *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
1be7136495
commit
8e681cdab9
@ -147,9 +147,6 @@ getSocketPath(virURIPtr uri)
|
||||
if (STREQ_NULLABLE(uri->path, "/system")) {
|
||||
sock_path = g_strdup_printf(RUNSTATEDIR "/libvirt/%s", sockbase);
|
||||
} else if (STREQ_NULLABLE(uri->path, "/session")) {
|
||||
if (!rundir)
|
||||
return NULL;
|
||||
|
||||
sock_path = g_strdup_printf("%s/%s", rundir, sockbase);
|
||||
} else {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
|
Loading…
Reference in New Issue
Block a user