mirror of
https://gitlab.com/shorewall/code.git
synced 2025-08-15 10:48:35 +02:00
Correct formatting of empty arguments to add_commands
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
@ -728,6 +728,8 @@ sub format_option( $$ ) {
|
|||||||
sub format_rule( $$;$ ) {
|
sub format_rule( $$;$ ) {
|
||||||
my ( $chainref, $ruleref, $suppresshdr ) = @_;
|
my ( $chainref, $ruleref, $suppresshdr ) = @_;
|
||||||
|
|
||||||
|
return $ruleref->{cmd} if exists $ruleref->{cmd};
|
||||||
|
|
||||||
my $rule = $suppresshdr ? '' : "-A $chainref->{name}";
|
my $rule = $suppresshdr ? '' : "-A $chainref->{name}";
|
||||||
|
|
||||||
for ( qw/ p i s o d / ) {
|
for ( qw/ p i s o d / ) {
|
||||||
|
Reference in New Issue
Block a user