Add open_sudoers() stubs.

This commit is contained in:
Todd C. Miller
2004-09-27 16:02:10 +00:00
parent 7cf26298a2
commit ec0ef3fcf7
2 changed files with 15 additions and 1 deletions

View File

@@ -336,6 +336,13 @@ set_runaspw(user)
return(TRUE); return(TRUE);
} }
FILE *
open_sudoers(path)
const char *path;
{
return(fopen(path, "r"));
}
void void
init_envtables() init_envtables()
{ {

View File

@@ -92,7 +92,7 @@ int netgr_matches __P((char *, char *, char *, char *));
int usergr_matches __P((char *, char *, struct passwd *)); int usergr_matches __P((char *, char *, struct passwd *));
int userpw_matches __P((char *, char *, struct passwd *)); int userpw_matches __P((char *, char *, struct passwd *));
void init_parser __P((void)); void init_parser __P((void));
void yyerror __P((char *)); void yyerror __P((const char *));
void yyrestart __P((FILE *)); void yyrestart __P((FILE *));
/* /*
@@ -694,6 +694,13 @@ check_syntax(quiet)
return(parse_error == TRUE); 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. * Unlink the sudoers temp file (if it exists) and exit.
* Used in place of a normal exit() and as a signal handler. * Used in place of a normal exit() and as a signal handler.