xbps-uunshare: fix previous (15977278).

This commit is contained in:
Juan RP 2015-03-09 12:45:32 +01:00
parent 1597727814
commit 301b6d220e

View File

@ -147,7 +147,7 @@ main(int argc, char **argv)
close(fd);
if ((fd = open("/proc/self/setgroups", O_RDWR)) == 0) {
if ((fd = open("/proc/self/setgroups", O_RDWR)) != -1) {
if (write(fd, "deny", 4) == -1)
die("failed to write to /proc/self/setgroups");
close(fd);