[sudo-commits] sudo changeset 7628:cc2de3f4f4ba

Todd C. Miller Todd.Miller at courtesan.com
Thu Jan 12 16:45:24 EST 2012

changeset:	7628:cc2de3f4f4ba in /home/hg/sudo
details:	http://www.sudo.ws/repos/sudo/rev/cc2de3f4f4ba
user:		Todd C. Miller <Todd.Miller at courtesan.com>
date:		Thu Jan 12 10:18:57 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.


 gram.c |  176 +++++++++++++++++++++--------------------
 gram.y |   10 +-
 toke.c |  276 +++++++++++++++++++++++++++++++++-------------------------------
 toke.l |  142 +++++++++++++++++----------------
 4 files changed, 314 insertions(+), 290 deletions(-)

More information about the sudo-commits mailing list