Establish $level and $tag correctly before invoking Action extension script

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6678 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-06-26 13:56:27 +00:00
parent ba296e6772
commit 9912f49a5a

View File

@ -195,6 +195,10 @@ sub createlogactionchain( $$ ) {
if ( -f $file ) {
progress_message "Processing $file...";
( $level, my $tag ) = split /:/, $level;
$tag = $tag || '';
unless ( my $return = eval `cat $file` ) {
fatal_error "Couldn't parse $file: $@" if $@;
fatal_error "Couldn't do $file: $!" unless defined $return;
@ -218,7 +222,9 @@ sub createsimpleactionchain( $ ) {
if ( -f $file ) {
progress_message "Processing $file...";
my ( $level, $tag ) = ( '', '' );
unless ( my $return = eval `cat $file` ) {
fatal_error "Couldn't parse $file: $@" if $@;
fatal_error "Couldn't do $file: $!" unless defined $return;