From ec0ef3fcf72406239c2635ff50d83ddbf7d46013 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 27 Sep 2004 16:02:10 +0000 Subject: [PATCH] Add open_sudoers() stubs. --- testsudoers.c | 7 +++++++ visudo.c | 9 ++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) 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. -- 2.50.1