From 301b6d220edf3ce951dd5fc430cb47e81395a7cd Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 9 Mar 2015 12:45:32 +0100 Subject: [PATCH] xbps-uunshare: fix previous (15977278). --- bin/xbps-uunshare/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/xbps-uunshare/main.c b/bin/xbps-uunshare/main.c index f2523eae..df75b137 100644 --- a/bin/xbps-uunshare/main.c +++ b/bin/xbps-uunshare/main.c @@ -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);