mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 18:08:23 +00:00
Treat an unknown defaults entry as a parse error.
This commit is contained in:
parent
f7f65cfb95
commit
32e896f339
@ -418,10 +418,13 @@ reparse_sudoers(char *editor, char *args, int strict, int quiet)
|
|||||||
errorfile = sp->path;
|
errorfile = sp->path;
|
||||||
}
|
}
|
||||||
fclose(yyin);
|
fclose(yyin);
|
||||||
if (!parse_error && check_aliases(strict, quiet) != 0) {
|
if (!parse_error) {
|
||||||
|
if (!update_defaults(SETDEF_GENERIC|SETDEF_HOST|SETDEF_USER) ||
|
||||||
|
check_aliases(strict, quiet) != 0) {
|
||||||
parse_error = TRUE;
|
parse_error = TRUE;
|
||||||
errorfile = sp->path;
|
errorfile = sp->path;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Got an error, prompt the user for what to do now
|
* Got an error, prompt the user for what to do now
|
||||||
|
Loading…
x
Reference in New Issue
Block a user