X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/151b83f867487080e8f0e5cd6179e857dc6b3ccb..c55a77db55ebf46a399f136eeb3a928b1e862772:/test/src/showids.c diff --git a/test/src/showids.c b/test/src/showids.c new file mode 100644 index 000000000..fd4eb2057 --- /dev/null +++ b/test/src/showids.c @@ -0,0 +1,26 @@ +/* $Cambridge: exim/test/src/showids.c,v 1.1 2006/02/06 16:24:05 ph10 Exp $ */ + +#include +#include +#include + +int main(void) +{ +int count, i; +gid_t grouplist[100]; + +printf("uid=%d gid=%d euid=%d egid=%d\n", + getuid(), getgid(), geteuid(), getegid()); + +/* Can no longer use this because on different systems, the supplemental +groups will be different. */ + +#ifdef NEVER +printf("supplemental groups: "); +count = getgroups(100, grouplist); +for (i = 0; i < count; i++) printf("%d ", grouplist[i]); +printf("\n"); +#endif + +return 0; +}