mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-05 08:45:28 +00:00
Go back to parsing Defaults entries in update_defaults instead of
as sudoers is read. Otherwise, we cannot properly support early defaults like sudoers_locale.
This commit is contained in:
@@ -1025,7 +1025,7 @@ export_sudoers(const char *sudoers_path, const char *export_path,
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
init_parser(sudoers_path, quiet, true);
|
||||
init_parser(sudoers_path, quiet);
|
||||
if (sudoersparse() && !parse_error) {
|
||||
if (!quiet)
|
||||
sudo_warnx(U_("failed to parse %s file, unknown error"), sudoers_path);
|
||||
|
Reference in New Issue
Block a user