From b81c8da23720b7e8a55869d677c3cdcbb36b6ddf Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sat, 3 Nov 2018 14:40:26 +0100 Subject: iptables-tests: do not append xtables-multi to external commands Lines starting by @ can be used to invoke an external command of any kind. Do not add xtables-multi here since we may want to execute a non-iptables command. Fixes: 9ff99156b63e ("iptables-test: fix netns test") Signed-off-by: Pablo Neira Ayuso --- iptables-test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iptables-test.py') diff --git a/iptables-test.py b/iptables-test.py index c199d509..7858f187 100755 --- a/iptables-test.py +++ b/iptables-test.py @@ -223,7 +223,7 @@ def run_test_file(filename, netns): if line[0] == "@": external_cmd = line.rstrip()[1:] if netns: - external_cmd = "ip netns exec ____iptables-container-test " + EXECUTEABLE + " " + external_cmd + external_cmd = "ip netns exec ____iptables-container-test " + external_cmd execute_cmd(external_cmd, filename, lineno) continue -- cgit v1.2.3