didn't match trailing / -- fix from rouilj@cs.umb.edu
* Lex Specification file for the sudo project.
*******************************************************************************/
#include <sys/types.h>
+#include <sys/param.h>
#include "y.tab.h"
#include "sudo.h"
%}
[?;<>\[\]{}|~.-]* { 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);