Only treat an unknown Defaults entry as a parse error in visudo,

not in sudo itself.
This commit is contained in:
Todd C. Miller
2016-11-01 15:08:11 -06:00
parent 8a48085184
commit f6ce83ea76
7 changed files with 124 additions and 116 deletions

View File

@@ -1025,7 +1025,7 @@ export_sudoers(const char *sudoers_path, const char *export_path,
goto done;
}
}
init_parser(sudoers_path, quiet);
init_parser(sudoers_path, quiet, true);
if (sudoersparse() && !parse_error) {
if (!quiet)
sudo_warnx(U_("failed to parse %s file, unknown error"), sudoers_path);