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:
@@ -43,7 +43,7 @@ check_remove_pkg_files(struct xbps_handle *xhp,
|
|||||||
bool fail = false;
|
bool fail = false;
|
||||||
|
|
||||||
if (euid == 0)
|
if (euid == 0)
|
||||||
return true;
|
return false;
|
||||||
|
|
||||||
for (unsigned int i = 0; i < xbps_array_count(obsoletes); i++) {
|
for (unsigned int i = 0; i < xbps_array_count(obsoletes); i++) {
|
||||||
const char *file = NULL;
|
const char *file = NULL;
|
||||||
|
Reference in New Issue
Block a user