diff options
Diffstat (limited to 'chkshsgr.c')
| -rw-r--r-- | chkshsgr.c | 6 |
1 files changed, 5 insertions, 1 deletions
| @@ -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 | |||
| 2 | void main() | 6 | void 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); |
