[sudo-commits] sudo changeset 7475:02ce7cc40f4d

Todd C. Miller Todd.Miller at courtesan.com
Wed Jan 4 13:05:12 EST 2012

changeset:	7475:02ce7cc40f4d in /home/hg/sudo
details:	http://www.sudo.ws/repos/sudo/rev/02ce7cc40f4d
user:		Todd C. Miller <Todd.Miller at courtesan.com>
date:		Wed Jan 04 12:44:03 2012 -0500

Log Message:
	Keep track of the last token returned.  On error, if the last token was
	COMMENT, decrement sudolineno since the error most likely occurred on
	the preceding line.  Previously we always uses sudolineno-1 which will
	give the wrong line number for errors within a line.


 plugins/sudoers/gram.c |  177 ++++++++++++++++---------------
 plugins/sudoers/gram.y |   11 +-
 plugins/sudoers/toke.c |  274 +++++++++++++++++++++++++-----------------------
 plugins/sudoers/toke.l |  142 +++++++++++++------------
 4 files changed, 313 insertions(+), 291 deletions(-)

More information about the sudo-commits mailing list