mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-01 17:35:17 +00:00
apparmor: report error when removing profile failed
Assign the return value to 'rc' before comparing it. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
ef17772900
commit
9e41a59ce5
@ -1497,7 +1497,7 @@ main(int argc, char **argv)
|
||||
size = virFileLength(profile, -1);
|
||||
if (size == 0) {
|
||||
vah_warning(_("Profile of 0 size detected, will attempt to remove it"));
|
||||
if ((rc = parserRemove(ctl->uuid) != 0))
|
||||
if ((rc = parserRemove(ctl->uuid)) != 0)
|
||||
vah_error(ctl, 1, _("could not remove profile"));
|
||||
unlink(profile);
|
||||
purged = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user