mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-01 17:35:17 +00:00
qemusecuritymock: Actually set error on failure
I don't really know what happened when I was writing the original code, but even if error was to be set the corresponding boolean was set to false meaning no error. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
854f0e85e4
commit
80cf6ec6f2
@ -366,7 +366,7 @@ checkOwner(void *payload,
|
||||
fprintf(stderr,
|
||||
"Path %s wasn't restored back to its original owner\n",
|
||||
(const char *) name);
|
||||
*chown_fail = false;
|
||||
*chown_fail = true;
|
||||
}
|
||||
|
||||
return 0;
|
||||
@ -382,7 +382,7 @@ printXATTR(void *payload,
|
||||
|
||||
/* The fact that we are in this function means that there are
|
||||
* some XATTRs left behind. This is enough to claim an error. */
|
||||
*xattr_fail = false;
|
||||
*xattr_fail = true;
|
||||
|
||||
/* Hash table key consists of "$path:$xattr_name", xattr
|
||||
* value is then the value stored in the hash table. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user