Add open_sudoers() stubs.
This commit is contained in:
@@ -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()
|
||||||
{
|
{
|
||||||
|
9
visudo.c
9
visudo.c
@@ -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.
|
||||||
|
Reference in New Issue
Block a user