From 034132774d1ccf11c0a0e1f205fcc16d8a7d9c8f Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 17 Jul 2017 09:42:42 -0600 Subject: [PATCH] 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. --- plugins/sudoers/visudo.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); -- 2.50.1