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:
parent
f7f65cfb95
commit
32e896f339
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user