From: Todd C. Miller Date: Thu, 12 Jan 2012 20:26:37 +0000 (-0500) Subject: For "visudo -c" also list include files that were checked when X-Git-Tag: SUDO_1_7_9~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a37dc893158bd48e4a9939eda13e709747d76d84;p=sudo For "visudo -c" also list include files that were checked when everything is OK. --HG-- branch : 1.7 --- diff --git a/visudo.c b/visudo.c index f79b9ff11..7755d9a35 100644 --- 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. */