include sudo.tab.h, not y.tab.h

don't break out of command args if you get a '='
This commit is contained in:
Todd C. Miller
1998-09-07 03:09:49 +00:00
parent 0643cd950f
commit e1a6b1fec2

View File

@@ -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;