2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 09:57:41 +00:00

Treat an unknown defaults entry as a parse error.

This commit is contained in:
Todd C. Miller 2010-07-19 12:53:45 -04:00
parent f7f65cfb95
commit 32e896f339

View File

@ -418,9 +418,12 @@ reparse_sudoers(char *editor, char *args, int strict, int quiet)
errorfile = sp->path;
}
fclose(yyin);
if (!parse_error && check_aliases(strict, quiet) != 0) {
parse_error = TRUE;
errorfile = sp->path;
if (!parse_error) {
if (!update_defaults(SETDEF_GENERIC|SETDEF_HOST|SETDEF_USER) ||
check_aliases(strict, quiet) != 0) {
parse_error = TRUE;
errorfile = sp->path;
}
}
/*