[sudo-commits] sudo changeset 7347:cb7c5ac834b5

Todd C. Miller Todd.Miller at courtesan.com
Mon Oct 10 12:43:54 EDT 2011


changeset:	7347:cb7c5ac834b5 in /home/hg/sudo
details:	http://www.sudo.ws/repos/sudo/rev/cb7c5ac834b5
user:		Todd C. Miller <Todd.Miller at courtesan.com>
date:		Mon Oct 10 12:43:45 2011 -0400

Log Message:
	Instead of trying to grow the buffer in make_grlist_item(), simply
	increase the total length, free the old buffer and allocate a new
	one.  This is less error prone and saves us from having to adjust
	all the pointers in the buffer.  This code path is only taken when
	there are groups longer than the length of the user field in struct
	utmp or utmpx, which should be quite rare.

diffstat:

 plugins/sudoers/pwutil.c |  27 +++++++++++++++------------
 1 files changed, 15 insertions(+), 12 deletions(-)



More information about the sudo-commits mailing list