[sudo-commits] sudo changeset 7096:0ad849a8b2d5
Todd C. Miller
Todd.Miller at courtesan.com
Wed Jul 20 16:56:11 EDT 2011
changeset: 7096:0ad849a8b2d5 in /home/hg/sudo
details: http://www.sudo.ws/repos/sudo/rev/0ad849a8b2d5
user: Todd C. Miller <Todd.Miller at courtesan.com>
date: Wed Jul 20 11:58:45 2011 -0400
Log Message:
Instead of keeping separate groups and gids arrays, create struct
group_info and use it to store both, along with a count for each.
Cache group info on a per-user basis using getgrouplist() to get
the groups. We no longer need special to special case the user or
list user for user_in_group() and thus no longer need to reset the
groups list when listing another user.
diffstat:
MANIFEST | 1 +
compat/Makefile.in | 3 +
compat/getgrouplist.c | 46 +++++++
config.h.in | 11 +-
configure | 34 +++++-
configure.in | 6 +-
include/missing.h | 3 +
mkdep.pl | 2 +-
plugins/sudoers/ldap.c | 41 +++--
plugins/sudoers/pwutil.c | 278 ++++++++++++++++++++++++++++++++++++++-----
plugins/sudoers/set_perms.c | 211 +++++++++++++--------------------
plugins/sudoers/sudo_nss.c | 47 -------
plugins/sudoers/sudoers.c | 87 +++++++------
plugins/sudoers/sudoers.h | 26 ++-
src/sudo.c | 9 -
15 files changed, 517 insertions(+), 288 deletions(-)
More information about the sudo-commits
mailing list