]> granicus.if.org Git - sudo/commitdiff
For "visudo -c" also list include files that were checked when
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 11 Jan 2012 21:25:39 +0000 (16:25 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 11 Jan 2012 21:25:39 +0000 (16:25 -0500)
everything is OK.

plugins/sudoers/visudo.c

index 9d715888555c476a624c69d122b3582204ae8ad7..2a45e5f7361d0b3ca7f3d4b1d0f8815277e1e549 100644 (file)
@@ -810,7 +810,11 @@ check_syntax(char *sudoers_path, bool quiet, bool strict)
            else
                (void) printf(_("parse error in %s\n"), errorfile);
        } else {
+           struct sudoersfile *sp;
            (void) printf(_("%s: parsed OK\n"), sudoers_path);
+           tq_foreach_fwd(&sudoerslist, sp) {
+               (void) printf(_("%s: parsed OK\n"), sp->path);
+           }
        }
     }
     /* Check mode and owner in strict mode. */