From ca7d145746282a00a8da08b1b2b4d749ff307faf Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sun, 6 Jun 2010 08:05:19 -0700 Subject: [PATCH] Don't enter command mode for upnpclient rule for non-optional interface Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Rules.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index 5ee14f46d..58a0aeb38 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -669,10 +669,10 @@ sub add_common_rules() { if ( interface_is_optional $interface ) { add_commands( $chainref, qq(if [ -n "\$${base}_IS_USABLE" -a -n "$variable" ]; then) , - ' echo -A ' . match_source_dev( $interface ) . qq(-s $variable -p udp -j ACCEPT >&3) , + ' echo "-A ' . match_source_dev( $interface ) . qq(-s $variable -p udp -j ACCEPT" >&3) , qq(fi) ); } else { - add_commands( $chainref, 'echo -A ' . match_source_dev( $interface ) . qq(-s $variable -p udp -j ACCEPT >&3) ); + add_rule( $chainref, match_source_dev( $interface ) . qq(-s $variable -p udp -j ACCEPT) ); } } }