INN commit: branches/2.6/scripts (inncheck.in)
INN Commit
rra at isc.org
Thu Mar 8 16:16:50 UTC 2018
Date: Thursday, March 8, 2018 @ 08:16:50
Author: iulius
Revision: 10256
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:
branches/2.6/scripts/inncheck.in
-------------+
inncheck.in | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
Modified: inncheck.in
===================================================================
--- inncheck.in 2018-03-08 16:14:46 UTC (rev 10255)
+++ inncheck.in 2018-03-08 16:16:50 UTC (rev 10256)
@@ -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