From fbd4d3638d0fd750cab06d40e3c56bc115aad8e5 Mon Sep 17 00:00:00 2001 From: teastep Date: Mon, 19 Nov 2007 20:02:21 +0000 Subject: [PATCH] Drop some cruft git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@7695 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-perl/Shorewall/Actions.pm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Shorewall-perl/Shorewall/Actions.pm b/Shorewall-perl/Shorewall/Actions.pm index a099570f5..2436eea5e 100644 --- a/Shorewall-perl/Shorewall/Actions.pm +++ b/Shorewall-perl/Shorewall/Actions.pm @@ -565,7 +565,7 @@ sub process_action( $$$$$$$$$$ ) { } # -# Expand Macro in action file4s. +# Expand Macro in action files. # sub process_macro3( $$$$$$$$$$$ ) { my ( $fn, $param, $chainref, $action, $source, $dest, $proto, $ports, $sports, $rate, $user ) = @_; @@ -574,8 +574,6 @@ sub process_macro3( $$$$$$$$$$$ ) { push_open $fn; - my $standard = ( $fn =~ /^($globals{SHAREDIR})/ ); - while ( read_a_line ) { my ( $mtarget, $msource, $mdest, $mproto, $mports, $msports, $mrate, $muser ) = split_line 1, 8, 'macro file'; @@ -633,7 +631,6 @@ sub process_macro3( $$$$$$$$$$$ ) { sub process_action3( $$$$$ ) { my ( $chainref, $wholeaction, $action, $level, $tag ) = @_; my $actionfile = find_file "action.$action"; - my $standard = ( $actionfile =~ /^$globals{SHAREDIR}/ ); fatal_error "Missing Action File ($actionfile)" unless -f $actionfile; @@ -656,7 +653,7 @@ sub process_action3( $$$$$ ) { ( $action2 , my $param ) = get_target_param $action2; - my $action2type = $targets{$action2}; + my $action2type = $targets{$action2} || 0; unless ( $action2type == STANDARD ) { if ( $action2type & ACTION ) {