Correctly handle alternate specification with ';' in 'update -t'

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2014-02-17 14:10:17 -08:00
parent 3e87efc82b
commit 1759fc75b0

View File

@ -950,7 +950,13 @@ sub process_tc_rule1( $$$$$$$$$$$$$$$$ ) {
my $raw_matches = fetch_inline_matches; my $raw_matches = fetch_inline_matches;
$line .= join( '', ' ;', $raw_matches ) if $raw_matches ne ' '; if ( $raw_matches ne ' ' ) {
if ( $command =~ /^INLINE/ || $config{INLINE_MATCHES} ) {
$line .= join( '', ' ;', $raw_matches );es
} else {
$line .= join( '', ' {', $raw_matches , ' }' );
}
}
print $mangle "$line\n"; print $mangle "$line\n";
} else { } else {