lib/package_remove.c: fix check_remove_pkg_files if euid is 0
True means the check failed, false means success
This commit is contained in:
parent
1d460bc793
commit
c815d3d5f5
@ -43,7 +43,7 @@ check_remove_pkg_files(struct xbps_handle *xhp,
|
||||
bool fail = false;
|
||||
|
||||
if (euid == 0)
|
||||
return true;
|
||||
return false;
|
||||
|
||||
for (unsigned int i = 0; i < xbps_array_count(obsoletes); i++) {
|
||||
const char *file = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user