[sudo-commits] sudo changeset 7379:d661a03a64da

Todd C. Miller Todd.Miller at courtesan.com
Sat Nov 5 07:37:25 EDT 2011


changeset:	7379:d661a03a64da in /home/hg/sudo
details:	http://www.sudo.ws/repos/sudo/rev/d661a03a64da
user:		Todd C. Miller <Todd.Miller at courtesan.com>
date:		Sat Nov 05 07:37:14 2011 -0400

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.

diffstat:

 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