| changeset 0 | 068428edee47 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tryshsgr.c Fri Oct 19 14:06:22 2007 +0200 @@ -0,0 +1,14 @@ +void main() +{ + short x[4]; + + x[0] = x[1] = 1; + if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1); + + if (getgroups(1,x) == -1) _exit(1); + if (x[1] != 1) _exit(1); + x[1] = 2; + if (getgroups(1,x) == -1) _exit(1); + if (x[1] != 2) _exit(1); + _exit(0); +}