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:
Duncan Overbruck 2019-08-05 15:41:11 +02:00
parent 1d460bc793
commit c815d3d5f5

View File

@ -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;