]> git.ipfire.org Git - thirdparty/iptables.git/commit
xshared: Accept an option if any given command allows it master
authorPhil Sutter <phil@nwl.cc>
Wed, 23 Apr 2025 10:36:13 +0000 (12:36 +0200)
committerPhil Sutter <phil@nwl.cc>
Wed, 23 Apr 2025 16:07:16 +0000 (18:07 +0200)
commit192c3a6bc18f206895ec5e38812d648ccfe7e281
tree83ab8fb53834e307adadff007cfac63db33453a7
parent1e6a2812971a268428b04b03520cd68cb61d76e3
xshared: Accept an option if any given command allows it

Fixed commit made option checking overly strict: Some commands may be
commbined (foremost --list and --zero), reject a given option only if it
is not allowed by any of the given commands.

Reported-by: Adam Nielsen <a.nielsen@shikadi.net>
Fixes: 9c09d28102bb4 ("xshared: Simplify generic_opt_check()")
Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/xshared.c