xbps-uunshare: fix previous (15977278
).
This commit is contained in:
parent
1597727814
commit
301b6d220e
@ -147,7 +147,7 @@ main(int argc, char **argv)
|
|||||||
|
|
||||||
close(fd);
|
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)
|
if (write(fd, "deny", 4) == -1)
|
||||||
die("failed to write to /proc/self/setgroups");
|
die("failed to write to /proc/self/setgroups");
|
||||||
close(fd);
|
close(fd);
|
||||||
|
Loading…
Reference in New Issue
Block a user