]> granicus.if.org Git - sudo/commitdiff
Fix matching of a line that only consists of a comment char
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 24 Nov 2008 00:41:36 +0000 (00:41 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 24 Nov 2008 00:41:36 +0000 (00:41 +0000)
toke.l

diff --git a/toke.l b/toke.l
index 81feeed9a026bdf23f70f9436656d8da94dbea47..eff6b4d3c1bc47076c520f8309d6bad9faa82200 100644 (file)
--- a/toke.l
+++ b/toke.l
@@ -467,7 +467,7 @@ sudoedit            {
                            LEXTRACE("\n\t");
                        }                       /* throw away EOL after \ */
 
-<INITIAL,STARTDEFS,INDEFS>#[^0-9-].*\n {
+<INITIAL,STARTDEFS,INDEFS>#([^\n0-9-].*)?\n    {
                            BEGIN INITIAL;
                            ++sudolineno;
                            LEXTRACE("\n");