summaryrefslogtreecommitdiffstats
path: root/chkshsgr.c
diff options
context:
space:
mode:
Diffstat (limited to 'chkshsgr.c')
-rw-r--r--chkshsgr.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/chkshsgr.c b/chkshsgr.c
index 2bcdade..bee9700 100644
--- a/chkshsgr.c
+++ b/chkshsgr.c
@@ -1,7 +1,11 @@
1#include <sys/types.h>
2#include <unistd.h>
3#include <grp.h>
1#include "exit.h" 4#include "exit.h"
5
2void main() 6void main()
3{ 7{
4 short x[4]; 8 gid_t x[4];
5 9
6 x[0] = x[1] = 0; 10 x[0] = x[1] = 0;
7 if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1); 11 if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1);