mirror of https://gitee.com/openkylin/libvirt.git
rpc: 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
01b2f93df8
commit
b0ffed92f1
|
@ -684,8 +684,7 @@ int virNetSocketNewConnectUNIX(const char *path,
|
|||
goto cleanup;
|
||||
}
|
||||
|
||||
if (!(rundir = virGetUserRuntimeDirectory()))
|
||||
goto cleanup;
|
||||
rundir = virGetUserRuntimeDirectory();
|
||||
|
||||
if (virFileMakePathWithMode(rundir, 0700) < 0) {
|
||||
virReportSystemError(errno,
|
||||
|
|
Loading…
Reference in New Issue