]> granicus.if.org Git - sudo/commitdiff
Allow an empty sudoers file.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 29 Sep 2004 18:28:46 +0000 (18:28 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 29 Sep 2004 18:28:46 +0000 (18:28 +0000)
parse.yacc

index cb159e14198848cb6dfd1c3859dd2bb7fddda3a8..929df589596f45101ba708ca4f268d9950f49258 100644 (file)
@@ -271,8 +271,12 @@ yyerror(s)
 
 %%
 
-file           :       entry
-               |       file entry
+file           :       { ; }
+               |       line
+               ;
+
+line           :       entry
+               |       line entry
                ;
 
 entry          :       COMMENT