mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 18:03:32 +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")) {
|
if (STREQ_NULLABLE(uri->path, "/system")) {
|
||||||
sock_path = g_strdup_printf(RUNSTATEDIR "/libvirt/%s", sockbase);
|
sock_path = g_strdup_printf(RUNSTATEDIR "/libvirt/%s", sockbase);
|
||||||
} else if (STREQ_NULLABLE(uri->path, "/session")) {
|
} else if (STREQ_NULLABLE(uri->path, "/session")) {
|
||||||
if (!rundir)
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
sock_path = g_strdup_printf("%s/%s", rundir, sockbase);
|
sock_path = g_strdup_printf("%s/%s", rundir, sockbase);
|
||||||
} else {
|
} else {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
|
Loading…
Reference in New Issue
Block a user