2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-28 12:57:50 +00:00

it is now a parse error for directories to have args attached to them

This commit is contained in:
Todd C. Miller 1995-08-19 23:31:35 +00:00
parent 723998be9c
commit cda9b243cb

View File

@ -77,7 +77,7 @@ N [0-9][0-9]?[0-9]?
<GOTCMND>[:,=\n] {
BEGIN 0;
unput(yytext[0]);
return(PATH);
return(COMMAND);
} /* end of command line args */
\n {
@ -126,9 +126,15 @@ N [0-9][0-9]?[0-9]?
return NTWKADDR;
}
\/[^\,:=\\ \t\n#]+\/ {
LEXTRACE("COMMAND ");
fill();
return COMMAND;
} /* a directory */
\/[^\,:=\\ \t\n#]+ {
BEGIN GOTCMND;
LEXTRACE("PATH ");
LEXTRACE("COMMAND ");
fill();
} /* a pathname */