From 2342c7cd9cb9bf64ba1b4d1f7d506117e408a360 Mon Sep 17 00:00:00 2001 From: Tuomo Soini Date: Tue, 29 Mar 2016 09:58:33 +0300 Subject: [PATCH] Perl/Shorewall/Chains.pm: Fix warning with older perl --- Shorewall/Perl/Shorewall/Chains.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index 816d3a95f..eda408e00 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -8627,12 +8627,12 @@ sub preview_netfilter_load() { print( '[ -n "$g_docker" ] && echo ":DOCKER - [0:0]" >&3' ); print "\n"; } elsif ( $name eq 'DOCKER-ISOLATION' ) { - enter_cmd_mode1 unless $mode = CMD_MODE; + enter_cmd_mode1 unless $mode == CMD_MODE; print( '[ -n "$g_dockernetwork" ] && echo ":DOCKER-ISOLATION - [0:0]" >&3' ); print "\n"; enter_cat_mode1; } else { - enter_cmd_mode1 unless $mode = CMD_MODE; + enter_cmd_mode1 unless $mode == CMD_MODE; print( ":$name - [0:0]\n" ); } } else {