Refinement to fix for double exclusion

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2011-05-06 07:29:00 -07:00
parent 1a48dd3eb9
commit 359de906ca

View File

@ -3248,12 +3248,12 @@ sub mysplit( $;$ ) {
unless ( $loose ) {
fatal_error "Invalid host list ($input)" if $exclude && $element =~ /!/;
$exclude ||= $element =~ /^!/ || $element =~ /\]!/;
}
$exclude ||= $element =~ /^!/ || $element =~ /\]!/;
fatal_error "Mismatched [...] ($element)" unless $element =~ tr/[/[/ == $element =~ tr/]/]/;
} else {
$exclude ||= $element =~ /!/;
$exclude ||= $element =~ /!/ unless $loose;
}
push @result, $element;