| 1 | /* this tests whether getgroups actually returns lists of integers
|
|---|
| 2 | rather than gid_t. The test only works if the user running
|
|---|
| 3 | the test is in at least 1 group
|
|---|
| 4 |
|
|---|
| 5 | The test is designed to check for those broken OSes that define
|
|---|
| 6 | getgroups() as returning an array of gid_t but actually return a
|
|---|
| 7 | array of ints! Ultrix is one culprit
|
|---|
| 8 | */
|
|---|
| 9 |
|
|---|
| 10 | #if defined(HAVE_UNISTD_H)
|
|---|
| 11 | #include <unistd.h>
|
|---|
| 12 | #endif
|
|---|
| 13 |
|
|---|
| 14 | #include <sys/types.h>
|
|---|
| 15 | #include <stdio.h>
|
|---|
| 16 | #include <unistd.h>
|
|---|
| 17 | #include <grp.h>
|
|---|
| 18 |
|
|---|
| 19 | main()
|
|---|
| 20 | {
|
|---|
| 21 | int i;
|
|---|
|
|---|