[sudo-commits] sudo changeset 14333:27bfa97ad47c

Todd C. Miller Todd.Miller at sudo.ws
Tue Nov 22 12:10:28 MST 2022

changeset:	14333:27bfa97ad47c in /raid/repos/sudo
details:	https://www.sudo.ws/repos/sudo/rev/27bfa97ad47c
user:		Todd C. Miller <Todd.Miller at sudo.ws>
date:		Tue Nov 22 08:45:14 2022 -0700

Log Message:
	Refactor code to open passwd/group file and add setpassent/setgroupent.
	This makes the "stayopen" semantics match the system passwd/group
	functions.  The getpwent/getgrent functions now open the database
	if it is not already open.


 plugins/group_file/getgrent.c |   55 +++++++++++---------
 plugins/sudoers/tsgetgrpw.c   |  108 ++++++++++++++++++++++-------------------
 plugins/sudoers/tsgetgrpw.h   |    2 +
 3 files changed, 90 insertions(+), 75 deletions(-)

More information about the sudo-commits mailing list