Diff of /trunk/mkinitrd-magellan/klibc/usr/dash/bltin/test.c
Parent Directory | Revision Log | Patch
revision 814 by niro, Sat Sep 1 22:45:15 2007 UTC | revision 815 by niro, Fri Apr 24 18:32:46 2009 UTC | |
---|---|---|
# | Line 489 bash_group_member(gid_t gid) | Line 489 bash_group_member(gid_t gid) |
489 | ||
490 | ngroups = getgroups(0, NULL); | ngroups = getgroups(0, NULL); |
491 | group_array = stalloc(ngroups * sizeof(gid_t)); | group_array = stalloc(ngroups * sizeof(gid_t)); |
492 | getgroups(ngroups, group_array); | if ((getgroups(ngroups, group_array)) != ngroups) |
493 | return (0); | |
494 | ||
495 | /* Search through the list looking for GID. */ | /* Search through the list looking for GID. */ |
496 | for (i = 0; i < ngroups; i++) | for (i = 0; i < ngroups; i++) |
|