From 29030e1dc1bed2fd7174bce6931b7fb68b23e4ce Mon Sep 17 00:00:00 2001 From: teastep Date: Sat, 28 Jul 2007 01:44:52 +0000 Subject: [PATCH] log_rule_limit now adds a trailing ' ' to non-empty $predicates git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6978 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-perl/Shorewall/Chains.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Shorewall-perl/Shorewall/Chains.pm b/Shorewall-perl/Shorewall/Chains.pm index 8cf129354..84b35b152 100644 --- a/Shorewall-perl/Shorewall/Chains.pm +++ b/Shorewall-perl/Shorewall/Chains.pm @@ -1318,6 +1318,8 @@ sub log_rule_limit( $$$$$$$$ ) { $prefix = "-j LOG $globals{LOGPARMS}--log-level $level --log-prefix \"$prefix\" "; } } + + $predicates .= ' ' if $predicates && substr( $predicates, -1, 1 ) ne ' '; if ( $command eq 'add' ) { add_rule ( $chainref, $predicates . $prefix );