[sudo-commits] sudo changeset 11431:c278fd947af4
Todd C. Miller
Todd.Miller at sudo.ws
Thu Jul 26 15:14:32 MDT 2018
changeset: 11431:c278fd947af4 in /raid/repos/sudo
details: https://www.sudo.ws/repos/sudo/rev/c278fd947af4
user: Todd C. Miller <Todd.Miller at sudo.ws>
date: Thu Jul 26 15:12:26 2018 -0600
Log Message:
Don't need to preallocate 4 x NGROUP_MAX on AIX or BSD/Linux.
For BSD/Linux, getgrouplist(3) will tell us the number of groups if
we don't have enough. For AIX, we can count the entries in the
group set before allocating the group vector.
diffstat:
lib/util/getgrouplist.c | 77 +++++++++++++++++++++---------------------------
1 files changed, 34 insertions(+), 43 deletions(-)
More information about the sudo-commits
mailing list