[sudo-commits] sudo changeset 12924:22611c14c1d1

Todd C. Miller Todd.Miller at sudo.ws
Tue Feb 9 12:17:13 MST 2021


changeset:	12924:22611c14c1d1 in /raid/repos/sudo
details:	https://www.sudo.ws/repos/sudo/rev/22611c14c1d1
user:		Todd C. Miller <Todd.Miller at sudo.ws>
date:		Tue Feb 09 09:06:17 2021 -0700

Log Message:
	Some getdelim(3) implementations write a NUL to the buffer on EOF.
	AIX and Illumos appear to have this behavior.  We now preserve the
	first character of the buffer on EOF to work around this.
	Fixes reporting of syntax errors on the last line of a file.

diffstat:

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



More information about the sudo-commits mailing list