djbdnscurve6  38
djbdnscurve6
tryshsgr.c
Go to the documentation of this file.
1 #include <sys/types.h>
2 #include <unistd.h>
3 #include <grp.h>
4 
5 int main()
6 {
7  gid_t x[4];
8 
9  x[0] = x[1] = 1;
10  if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1);
11 
12  if (getgroups(1,x) == -1) _exit(1);
13  if (x[1] != 1) _exit(1);
14  x[1] = 2;
15  if (getgroups(1,x) == -1) _exit(1);
16  if (x[1] != 2) _exit(1);
17  _exit(0);
18 }
struct line * x
int main()
Definition: tryshsgr.c:5