xbps-uunshare: fix previous (15977278).
This commit is contained in:
1 parent
1597727814
commit
301b6d220e
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user