id.c | 264 gid_t *glist = groups; local in function:user 272 if (getgrouplist(pw->pw_name, pw->pw_gid, glist, &ngroups) == -1) { 273 glist = malloc(ngroups * sizeof(gid_t)); 274 (void) getgrouplist(pw->pw_name, pw->pw_gid, glist, &ngroups); 278 id = glist[cnt]; 286 if (glist != groups) 287 free(glist); 297 gid_t *glist = groups; local in function:group 301 if (getgrouplist(pw->pw_name, pw->pw_gid, glist, &ngroups) 303 glist = malloc(ngroups * sizeof(gid_t)) [all...] |