10 int setgroups(int ngroups
, const gid_t
*gidset
)
13 /* Supplementary groups not implemented */
19 return setgid(gidset
[0]);
24 int initgroups(const char *name
, gid_t basegid
)
28 if((r
= setgid(basegid
)) < 0)
32 while (!found
&& (gr
= getgrent()) != NULL
) {
34 for(mem
= gr
->gr_mem
; mem
&& *mem
; mem
++) {
35 if(!strcmp(name
, *mem
)) {
43 /* Because supplemental groups aren't implemented, this call
44 * should fail if the user is in any supplemental groups.