mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
qemuProcessBuildDestroyMemoryPathsImpl: Don't overwrite error
The qemuSecurityDomainSetPathLabel() function reports perfect error itself. Do not overwrite it to something less meaningful. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
614193fac6
commit
577e68dff9
@ -3669,11 +3669,8 @@ qemuProcessBuildDestroyMemoryPathsImpl(virQEMUDriverPtr driver,
|
||||
}
|
||||
|
||||
if (qemuSecurityDomainSetPathLabel(driver->securityManager,
|
||||
def, path, true) < 0) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||
_("Unable to label %s"), path);
|
||||
def, path, true) < 0)
|
||||
return -1;
|
||||
}
|
||||
} else {
|
||||
if (virFileDeleteTree(path) < 0)
|
||||
return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user