INN commit: trunk (doc/pod/innd.pod innd/innd.c)

INN Commit rra at isc.org
Thu Jul 7 11:12:26 UTC 2011


    Date: Thursday, July 7, 2011 @ 04:12:26
  Author: iulius
Revision: 9228

let innd -S check incoming.conf

The fully-useful check will have to wait for the new config parser being
used...

Thanks to Florian Schlichting for this new -S flag.

Modified:
  trunk/doc/pod/innd.pod
  trunk/innd/innd.c

------------------+
 doc/pod/innd.pod |    7 ++++++-
 innd/innd.c      |    6 +++++-
 2 files changed, 11 insertions(+), 2 deletions(-)

Modified: doc/pod/innd.pod
===================================================================
--- doc/pod/innd.pod	2011-07-07 11:07:25 UTC (rev 9227)
+++ doc/pod/innd.pod	2011-07-07 11:12:26 UTC (rev 9228)
@@ -4,7 +4,7 @@
 
 =head1 SYNOPSIS
 
-B<innd> [B<-aCdfNrsu>] [B<-4> I<address>] [B<-6> I<address>] [B<-c> I<days>]
+B<innd> [B<-aCdfNrsSu>] [B<-4> I<address>] [B<-6> I<address>] [B<-c> I<days>]
 [B<-H> I<count>] [B<-i> I<count>] [B<-l> I<size>] [B<-m> I<mode>]
 [B<-n> I<flag>] [B<-o> I<count>] [B<-P> I<port>] [B<-t> I<timeout>]
 [B<-T> I<count>] [B<-X> I<seconds>]
@@ -212,6 +212,11 @@
 exit with a non-zero status if any errors are found; the actual errors
 will be reported via syslog(3).
 
+=item B<-S>
+
+Report errors found in F<incoming.conf> via syslog(3) and exit normally.
+(Yes, this is less useful than it should be.)
+
 =item B<-t> I<seconds>
 
 Normally, B<innd> will flush any changes to history and the F<active> file

Modified: innd/innd.c
===================================================================
--- innd/innd.c	2011-07-07 11:07:25 UTC (rev 9227)
+++ innd/innd.c	2011-07-07 11:12:26 UTC (rev 9228)
@@ -411,7 +411,7 @@
 
     /* Parse JCL. */
     CCcopyargv(av);
-    while ((i = getopt(ac, av, "4:6:ac:CdfH:i:l:m:n:No:P:rst:T:uX:")) != EOF)
+    while ((i = getopt(ac, av, "4:6:ac:CdfH:i:l:m:n:No:P:rsSt:T:uX:")) != EOF)
 	switch (i) {
 	default:
 	    Usage();
@@ -489,6 +489,10 @@
 	case 's':
 	    ShouldSyntaxCheck = true;
 	    break;
+        case 'S':
+            RCreadlist();
+            exit(0);
+            break;
 	case 't':
 	    TimeOut.tv_sec = atol(optarg);
 	    break;




More information about the inn-committers mailing list