]> git.ipfire.org Git - thirdparty/iptables.git/commit
xtables-translate: Fix for iface++
authorPhil Sutter <phil@nwl.cc>
Thu, 13 Feb 2020 13:01:50 +0000 (14:01 +0100)
committerPhil Sutter <phil@nwl.cc>
Fri, 14 Feb 2020 11:16:41 +0000 (12:16 +0100)
commit94488d4eb912f5af4c88d148b39b38eb8a3c1f0b
tree30cbcb685bba41fe8e1eb949d260646f0097256f
parent2b2b7948c1960ba4680677664ff58477be869de6
xtables-translate: Fix for iface++

In legacy iptables, only the last plus sign remains special, any
previous ones are taken literally. Therefore xtables-translate must not
replace all of them with asterisk but just the last one.

Fixes: e179e87a1179e ("xtables-translate: Fix for interface name corner-cases")
Signed-off-by: Phil Sutter <phil@nwl.cc>
extensions/generic.txlate
iptables/xtables-translate.c