summaryrefslogtreecommitdiffstats
path: root/iptables/xtables-restore.c
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>2014-02-11 12:46:44 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2014-02-11 12:09:08 +0100
commit7851975e5055381d30f0788d90671485695928e1 (patch)
treee71790623ca459b44b9c44e1c01eb1b5e99c5999 /iptables/xtables-restore.c
parent4cffe00557b40dfe8c3236746797b24c4074c95e (diff)
xtables: Add backward compatibility with -w option
Just to keep aligned with iptables legacy tool. Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/xtables-restore.c')
-rw-r--r--iptables/xtables-restore.c3
1 files changed, 2 insertions, 1 deletions
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) {