]> granicus.if.org Git - sudo/commitdiff
For "visudo -c" also list include files that were checked when
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 12 Jan 2012 20:26:37 +0000 (15:26 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 12 Jan 2012 20:26:37 +0000 (15:26 -0500)
everything is OK.

--HG--
branch : 1.7

visudo.c

index f79b9ff11884a3e6296dba8918dfaaa6b403b416..7755d9a350eae8e6b075868d13830ccea78982cb 100644 (file)
--- a/visudo.c
+++ b/visudo.c
@@ -788,7 +788,11 @@ check_syntax(sudoers_path, quiet, 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. */