diff options
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/sudo/parse.lex | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.bin/sudo/parse.lex b/usr.bin/sudo/parse.lex index 773be1b109e..43941ac318e 100644 --- a/usr.bin/sudo/parse.lex +++ b/usr.bin/sudo/parse.lex @@ -339,6 +339,12 @@ PASSWD[[:blank:]]*: { return(COMMENT); } /* return comments */ +<GOTRUNAS,GOTDEFS,GOTCMND,STARTDEFS,INDEFS><<EOF>> { + BEGIN INITIAL; + LEXTRACE("EOF "); + return(ERROR); + } /* premature EOF */ + <*>. { LEXTRACE("ERROR "); return(ERROR); |