[sudo-commits] sudo changeset 7345:5587dc8cffaf
Todd C. Miller
Todd.Miller at courtesan.com
Mon Oct 10 11:11:05 EDT 2011
changeset: 7345:5587dc8cffaf in /home/hg/sudo
details: http://www.sudo.ws/repos/sudo/rev/5587dc8cffaf
user: Todd C. Miller <Todd.Miller at courtesan.com>
date: Mon Oct 10 11:10:59 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