]> granicus.if.org Git - sudo/commitdiff
Call install_sudoers() even when doedit is false. If a file in a
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 17 Jul 2017 15:42:42 +0000 (09:42 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 17 Jul 2017 15:42:42 +0000 (09:42 -0600)
#includedir has a syntax error it will still have been edited and
we need to install the edited temp file.

plugins/sudoers/visudo.c

index 4b877a07496e8c05587339abfc743e483f483410..20a3cd6828db48890405034e37ad3a2a979a802c 100644 (file)
@@ -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);