From 26cf125fb9a6aceb8012451b9ed53bd4c8f22027 Mon Sep 17 00:00:00 2001 From: modric Date: Thu, 24 Nov 2022 09:42:05 +0800 Subject: [PATCH] check_syntax(): Remove duplicate calls to init_defaults() --- plugins/sudoers/visudo.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/sudoers/visudo.c b/plugins/sudoers/visudo.c index 7636b9754..19ecaf687 100644 --- a/plugins/sudoers/visudo.c +++ b/plugins/sudoers/visudo.c @@ -971,8 +971,6 @@ check_syntax(const char *file, bool quiet, bool strict, bool check_owner, sudo_warn(U_("unable to open %s"), file); goto done; } - if (!init_defaults()) - sudo_fatalx("%s", U_("unable to initialize sudoers default values")); init_parser(file, quiet, true); sudoers_setlocale(SUDOERS_LOCALE_SUDOERS, &oldlocale); if (sudoersparse() && !parse_error) {