From: Todd C. Miller Date: Mon, 17 Jul 2017 15:42:42 +0000 (-0600) Subject: Call install_sudoers() even when doedit is false. If a file in a X-Git-Tag: SUDO_1_8_21^2~35 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=034132774d1ccf11c0a0e1f205fcc16d8a7d9c8f;p=sudo Call install_sudoers() even when doedit is false. If a file in a #includedir has a syntax error it will still have been edited and we need to install the edited temp file. --- diff --git a/plugins/sudoers/visudo.c b/plugins/sudoers/visudo.c index 4b877a074..20a3cd682 100644 --- a/plugins/sudoers/visudo.c +++ b/plugins/sudoers/visudo.c @@ -276,8 +276,7 @@ main(int argc, char *argv[]) */ if (reparse_sudoers(editor, editor_argc, editor_argv, strict, quiet)) { TAILQ_FOREACH(sp, &sudoerslist, entries) { - if (sp->doedit) - (void) install_sudoers(sp, oldperms); + (void) install_sudoers(sp, oldperms); } } free(editor);