From 7851975e5055381d30f0788d90671485695928e1 Mon Sep 17 00:00:00 2001 From: Tomasz Bursztyka Date: Tue, 11 Feb 2014 12:46:44 +0200 Subject: xtables: Add backward compatibility with -w option Just to keep aligned with iptables legacy tool. Signed-off-by: Tomasz Bursztyka Signed-off-by: Pablo Neira Ayuso --- iptables/xtables-restore.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'iptables/xtables-restore.c') diff --git a/iptables/xtables-restore.c b/iptables/xtables-restore.c index c4af2c5d..730800ff 100644 --- a/iptables/xtables-restore.c +++ b/iptables/xtables-restore.c @@ -442,7 +442,8 @@ xtables_restore_main(int family, const char *progname, int argc, char *argv[]) for (a = 0; a < newargc; a++) DEBUGP("argv[%u]: %s\n", a, newargv[a]); - ret = do_commandx(&h, newargc, newargv, &newargv[2]); + ret = do_commandx(&h, newargc, newargv, + &newargv[2], true); if (ret < 0) { ret = nft_abort(&h); if (ret < 0) { -- cgit v1.2.3