2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Support sudoers_file being a colon-separated path of files.

The first file found is used.
This commit is contained in:
Todd C. Miller
2023-05-02 10:37:38 -06:00
parent 4363d03ef7
commit f17b35471f
10 changed files with 131 additions and 55 deletions

View File

@@ -442,7 +442,7 @@ sudo_endspent(void)
}
FILE *
open_sudoers(const char *file, bool doedit, bool *keepopen)
open_sudoers(const char *file, char **outfile, bool doedit, bool *keepopen)
{
struct stat sb;
FILE *fp = NULL;