[sudo-commits] sudo changeset 12960:1e353f05a0fa

Todd C. Miller Todd.Miller at sudo.ws
Tue Feb 9 18:26:21 MST 2021


changeset:	12960:1e353f05a0fa in /raid/repos/sudo
details:	https://www.sudo.ws/repos/sudo/rev/1e353f05a0fa
user:		Todd C. Miller <Todd.Miller at sudo.ws>
date:		Tue Feb 09 18:23:23 2021 -0700

Log Message:
	Portable workaround for getdelim(3) implementations modify buf on EOF.
	We should assume that the contents of buf are undefined when getdelim(3)
	returns -1.  We now peek ahead one char and skip the getdelim(3) call if
	EOF is detected.  This will preserve the original value of the last line.

diffstat:

 plugins/sudoers/toke.c |  26 ++++++++++++--------------
 plugins/sudoers/toke.l |  26 ++++++++++++--------------
 2 files changed, 24 insertions(+), 28 deletions(-)



More information about the sudo-commits mailing list