INN commit: trunk/scripts (inncheck.in)

INN Commit rra at isc.org
Sun Feb 25 21:27:49 UTC 2018


    Date: Sunday, February 25, 2018 @ 13:27:49
  Author: iulius
Revision: 10247

inncheck:  do not warn when "control" is used in newsgroup pattern

Lines that were triggering a warning (in sample control.ctl file):
newgroup:*:control|general|junk|test|to:drop
rmgroup:*:control|general|junk|test|to:drop

Modified:
  trunk/scripts/inncheck.in

-------------+
 inncheck.in |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Modified: inncheck.in
===================================================================
--- inncheck.in	2018-02-16 21:12:42 UTC (rev 10246)
+++ inncheck.in	2018-02-25 21:27:49 UTC (rev 10247)
@@ -398,8 +398,12 @@
 
 	##  Perhaps check for conflicting rules, or warn about the last-match
 	##  rule?  Maybe later...
+
+        ##  Warn if newsgroup pattern is not "*", do not contain a dot
+        ##  and is not the generic line for reserved groups in the
+        ##  sample control.ctl file.
 	eprint "$file:$line: may not match groups properly.\n"
-	    if $ng ne "*" && $ng !~ /\./;
+	    if $ng ne "*" && $ng !~ /\./ && $ng !~ /^control\|/;
 	if ( $act !~ /([^=]+)(=.+)?/ ) {
 	    eprint "$file:$line: malformed line.\n";
 	    next input;



More information about the inn-committers mailing list