mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-20 09:47:51 +02:00
Don't require a parameter with '&'
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
57e913d86e
commit
0db7b6c58a
@ -1589,8 +1589,11 @@ sub process_macro ( $$$$$$$$$$$$$$$$$$$) {
|
||||
}
|
||||
|
||||
if ( $mtarget =~ s/&$// ) {
|
||||
fatal_error "$mtarget& requires a parameter to be supplied in macro invocation" unless $param ne '';
|
||||
if ( supplied $param ) {
|
||||
$mtarget = "$mtarget:$macro($param)";
|
||||
} else {
|
||||
$mtarget = "$mtarget:$macro";
|
||||
}
|
||||
}
|
||||
|
||||
my $action = isolate_basic_target $mtarget;
|
||||
|
Loading…
x
Reference in New Issue
Block a user