mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 06:15:37 +00:00
Merge pull request #214 from BornThisWay/1124_repeated_invocation
check_syntax(): Remove duplicate calls to init_defaults()
This commit is contained in:
@@ -971,8 +971,6 @@ check_syntax(const char *file, bool quiet, bool strict, bool check_owner,
|
|||||||
sudo_warn(U_("unable to open %s"), file);
|
sudo_warn(U_("unable to open %s"), file);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
if (!init_defaults())
|
|
||||||
sudo_fatalx("%s", U_("unable to initialize sudoers default values"));
|
|
||||||
init_parser(file, quiet, true);
|
init_parser(file, quiet, true);
|
||||||
sudoers_setlocale(SUDOERS_LOCALE_SUDOERS, &oldlocale);
|
sudoers_setlocale(SUDOERS_LOCALE_SUDOERS, &oldlocale);
|
||||||
if (sudoersparse() && !parse_error) {
|
if (sudoersparse() && !parse_error) {
|
||||||
|
Reference in New Issue
Block a user