From: Todd C. Miller Date: Wed, 29 Sep 2004 18:28:46 +0000 (+0000) Subject: Allow an empty sudoers file. X-Git-Tag: SUDO_1_7_0~924 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e975fafe4bb030ef8d67ca6a2ce2c624489df7d;p=sudo Allow an empty sudoers file. --- diff --git a/parse.yacc b/parse.yacc index cb159e141..929df5895 100644 --- a/parse.yacc +++ b/parse.yacc @@ -271,8 +271,12 @@ yyerror(s) %% -file : entry - | file entry +file : { ; } + | line + ; + +line : entry + | line entry ; entry : COMMENT