From: Todd C. Miller Date: Mon, 24 Nov 2008 00:41:36 +0000 (+0000) Subject: Fix matching of a line that only consists of a comment char X-Git-Tag: SUDO_1_7_0~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1c79dd537a11905b72eef406033dfb8c2240fb97;p=sudo Fix matching of a line that only consists of a comment char --- diff --git a/toke.l b/toke.l index 81feeed9a..eff6b4d3c 100644 --- a/toke.l +++ b/toke.l @@ -467,7 +467,7 @@ sudoedit { LEXTRACE("\n\t"); } /* throw away EOL after \ */ -#[^0-9-].*\n { +#([^\n0-9-].*)?\n { BEGIN INITIAL; ++sudolineno; LEXTRACE("\n");