]> granicus.if.org Git - sudo/commitdiff
now includes sys/param.h
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 4 Sep 1993 11:59:36 +0000 (11:59 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 4 Sep 1993 11:59:36 +0000 (11:59 +0000)
didn't match trailing / -- fix from rouilj@cs.umb.edu

parse.lex

index c68c1a59875c91b9c275a8d95db5a78e3974521f..47e74373c1c4646a5ecbfe08970d505b3a97a3a2 100644 (file)
--- a/parse.lex
+++ b/parse.lex
@@ -31,6 +31,7 @@
 * Lex Specification file for the sudo project.
 *******************************************************************************/
 #include <sys/types.h>
+#include <sys/param.h>
 #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);