From: Todd C. Miller Date: Sat, 4 Sep 1993 11:59:36 +0000 (+0000) Subject: now includes sys/param.h X-Git-Tag: SUDO_1_3_0~110 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6961229571e2de9c2056e6e76f140300b706a67f;p=sudo now includes sys/param.h didn't match trailing / -- fix from rouilj@cs.umb.edu --- diff --git a/parse.lex b/parse.lex index c68c1a598..47e74373c 100644 --- a/parse.lex +++ b/parse.lex @@ -31,6 +31,7 @@ * Lex Specification file for the sudo project. *******************************************************************************/ #include +#include #include "y.tab.h" #include "sudo.h" %} @@ -48,7 +49,7 @@ [?;<>\[\]{}|~.-]* { return ERROR; } /* return error */ ^[a-zA-Z0-9_-]+ { fill(); return IDENT1;} /* user/{Host,Cmnd}_Alias */ [a-zA-Z0-9_.+-]+ { fill(); return IDENT2;} /* host_type/ALIASES */ -(\/[a-zA-Z0-9_.+-]+)+ { fill(); return IDENT3;} /* absolute command path */ +(\/[a-zA-Z0-9_.+-]+)+\/? { fill(); return IDENT3;} /* absolute command path */ %% fill() { strcpy(yylval.char_val, yytext);