From: Todd C. Miller Date: Mon, 27 Sep 2004 16:02:10 +0000 (+0000) Subject: Add open_sudoers() stubs. X-Git-Tag: SUDO_1_7_0~941 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec0ef3fcf72406239c2635ff50d83ddbf7d46013;p=sudo Add open_sudoers() stubs. --- diff --git a/testsudoers.c b/testsudoers.c index 127e43d96..c191c9d71 100644 --- a/testsudoers.c +++ b/testsudoers.c @@ -336,6 +336,13 @@ set_runaspw(user) return(TRUE); } +FILE * +open_sudoers(path) + const char *path; +{ + return(fopen(path, "r")); +} + void init_envtables() { diff --git a/visudo.c b/visudo.c index b555ae968..b198d56f6 100644 --- 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.