now includes sys/param.h

didn't match trailing / -- fix from rouilj@cs.umb.edu
This commit is contained in:
Todd C. Miller
1993-09-04 11:59:36 +00:00
parent 3a96124e85
commit 6961229571

View File

@@ -31,6 +31,7 @@
* Lex Specification file for the sudo project. * Lex Specification file for the sudo project.
*******************************************************************************/ *******************************************************************************/
#include <sys/types.h> #include <sys/types.h>
#include <sys/param.h>
#include "y.tab.h" #include "y.tab.h"
#include "sudo.h" #include "sudo.h"
%} %}
@@ -48,7 +49,7 @@
[?;<>\[\]{}|~.-]* { return ERROR; } /* return error */ [?;<>\[\]{}|~.-]* { return ERROR; } /* return error */
^[a-zA-Z0-9_-]+ { fill(); return IDENT1;} /* user/{Host,Cmnd}_Alias */ ^[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 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() { fill() {
strcpy(yylval.char_val, yytext); strcpy(yylval.char_val, yytext);