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

@@ -56,7 +56,7 @@ sudo_printf_t sudo_printf = fuzz_printf;
int sudo_mode;
FILE *
open_sudoers(const char *file, bool doedit, bool *keepopen)
open_sudoers(const char *file, char **outfile, bool doedit, bool *keepopen)
{
/*
* If we allow the fuzzer to choose include paths it will