]> granicus.if.org Git - sudo/commitdiff
include sudo.tab.h, not y.tab.h
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 7 Sep 1998 03:09:49 +0000 (03:09 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 7 Sep 1998 03:09:49 +0000 (03:09 +0000)
don't break out of command args if you get a '='

parse.lex

index b74163733752790792754433b68400534723a65b..226ee08c574a781ae213ed0102c08d798d980470 100644 (file)
--- a/parse.lex
+++ b/parse.lex
@@ -49,7 +49,7 @@ static char rcsid[] = "$Id$";
 #include <netinet/in.h>
 #include "sudo.h"
 #include <options.h>
-#include "y.tab.h"
+#include "sudo.tab.h"
 
 #undef yywrap          /* guard against a yywrap macro */
 
@@ -122,7 +122,7 @@ WORD                        [[:alnum:]_-]+
                            return(COMMENT);
                        }                       /* return comments */
 
-<GOTCMND>[^:\,= \t\n]+ {
+<GOTCMND>[^:\, \t\n]+ {
                            LEXTRACE("ARG ");
                            fill_args(yytext, yyleng, sawspace);
                            sawspace = FALSE;