K 10 svn:author V 6 brooks K 8 svn:date V 27 2009-06-17T19:01:47.132175Z K 7 svn:log V 463 Consistently use arrays of {NGROUPS_MAX}+1 with getgroups() and getgrouplist(). In doing so, use the pattern from the example from the posix manpages where ngroups_max is a long and set to sysconf(_SC_NGROUPS_MAX)+1. In id(1), don't use a combination of getgid() and getgroups() to retrieve the list of groups. There's no need to account for the possibility that getgroups does not return the primary gid, espeically when we only do it in of of the two cases. END