Fix expansion of pre-rule parameter

If the `pre-rule` paramater is used -- i.e. not empty -- it is expanded without a separating whithespace to the next parmeters -- typical `-p ...`. This causes the call of the `iptables` command to fail.

Just add a space to separate the expanded variables; the superfluous space in case of an empty pre-role seems tolerable to me.
This commit is contained in:
Guido Jäkel 2025-10-15 13:43:35 +02:00 committed by GitHub
parent 7bac839603
commit 3d5c5a0337
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -79,7 +79,7 @@ _ipt_check_rules = <_ipt-iter>
%(_ipt_check_rule)s
<_ipt-done>
_ipt_chain_rule = <pre-rule><ipt_<type>/_chain_rule>
_ipt_chain_rule = <pre-rule> <ipt_<type>/_chain_rule>
_ipt_check_rule = <iptables> -C $chain %(_ipt_chain_rule)s
_ipt_rule_target = f2b-<name>