]> granicus.if.org Git - sudo/commitdiff
Add open_sudoers() stubs.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 27 Sep 2004 16:02:10 +0000 (16:02 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 27 Sep 2004 16:02:10 +0000 (16:02 +0000)
testsudoers.c
visudo.c

index 127e43d96ed7a82b3d336844c18cb355fcf22d18..c191c9d71acb8b1671c543f0f4399a94bac3f7a3 100644 (file)
@@ -336,6 +336,13 @@ set_runaspw(user)
     return(TRUE);
 }
 
+FILE *
+open_sudoers(path)
+    const char *path;
+{
+    return(fopen(path, "r"));
+}
+
 void
 init_envtables()
 {
index b555ae968ac326e0ecedcdb5e500f88cb212132f..b198d56f63283e01760393070338bb26e1832d48 100644 (file)
--- a/visudo.c
+++ b/visudo.c
@@ -92,7 +92,7 @@ int netgr_matches             __P((char *, char *, char *, char *));
 int usergr_matches             __P((char *, char *, struct passwd *));
 int userpw_matches             __P((char *, char *, struct passwd *));
 void init_parser               __P((void));
-void yyerror                   __P((char *));
+void yyerror                   __P((const char *));
 void yyrestart                 __P((FILE *));
 
 /*
@@ -694,6 +694,13 @@ check_syntax(quiet)
     return(parse_error == TRUE);
 }
 
+FILE *
+open_sudoers(path)
+    const char *path;
+{
+    return(fopen(path, "r"));
+}
+
 /*
  * Unlink the sudoers temp file (if it exists) and exit.
  * Used in place of a normal exit() and as a signal handler.