Brooks Davis 9126964cdb Only allocate the space we need before calling kern_getgroups instead
of allocating what ever the user asks for up to "ngroups_max + 1".  On
systems with large values of kern.ngroups this will be more efficient.

The now redundant check that the array is large enough in
kern_getgroups() is deliberate to allow this change to be merged to
stable/8 without breaking potential third party consumers of the API.

Reported by:	bde
MFC after:	28 days
2010-01-15 07:18:46 +00:00
..
2009-10-27 11:01:15 +00:00
2010-01-11 22:34:25 +00:00
2010-01-07 01:24:09 +00:00
2009-12-25 20:03:03 +00:00
2009-08-23 09:55:06 +00:00
2010-01-04 12:39:42 +00:00
2009-10-27 11:01:15 +00:00
2009-10-27 11:01:15 +00:00
2010-01-04 20:59:52 +00:00
2010-01-04 20:59:52 +00:00
2009-05-26 09:19:21 +00:00
2010-01-11 20:44:05 +00:00