From 6961229571e2de9c2056e6e76f140300b706a67f Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 4 Sep 1993 11:59:36 +0000 Subject: [PATCH] now includes sys/param.h didn't match trailing / -- fix from rouilj@cs.umb.edu --- parse.lex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);