diff --git a/plugins/sudoers/visudo.c b/plugins/sudoers/visudo.c index c56ffe030..d20a0dec4 100644 --- a/plugins/sudoers/visudo.c +++ b/plugins/sudoers/visudo.c @@ -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; + } } /*