From e4ca29eeca7ffc7d44de3eb0e5474c4085895fc2 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 09 2020 17:27:01 +0000 Subject: Apply patch 0025-tests-shell-Test-F-in-dump-files.patch patch_name: 0025-tests-shell-Test-F-in-dump-files.patch present_in_specfile: true location_in_specfile: 25 --- diff --git a/iptables/tests/shell/testcases/ipt-restore/0012-dash-F_0 b/iptables/tests/shell/testcases/ipt-restore/0012-dash-F_0 new file mode 100755 index 0000000..fd82afa --- /dev/null +++ b/iptables/tests/shell/testcases/ipt-restore/0012-dash-F_0 @@ -0,0 +1,12 @@ +#!/bin/bash -e + +# make sure -F lines don't cause segfaults + +RULESET='*nat +-F PREROUTING +-A PREROUTING -j ACCEPT +-F PREROUTING +COMMIT' + +echo -e "$RULESET" | $XT_MULTI iptables-restore +echo -e "$RULESET" | $XT_MULTI iptables-restore -n