summaryrefslogtreecommitdiffstats
path: root/iptables-restore.c
diff options
context:
space:
mode:
authorRob Leslie <rob@mars.org>2010-09-28 00:43:00 -0700
committerJan Engelhardt <jengelh@medozas.de>2010-12-18 00:11:30 +0100
commitf6d6449c88812634e663cef4e09db7b691af3eb5 (patch)
tree852d0b96f50c2a4c133115db49a6600b95e726f6 /iptables-restore.c
parent3a84b3d5de492e40aff7bae5038b06dd6b6041c4 (diff)
iptables-restore: resolve confusing policy error message
When iptables-restore (and ip6tables-restore) is unable to set a chain's policy, it responds with a confusing message, e.g.: iptables-restore v1.4.9: Can't set policy "PREROUTING" on "ACCEPT" line 16: Bad built-in chain name This is due to the chain and policy arguments being used in the wrong order. The attached patch corrects this problem. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'iptables-restore.c')
-rw-r--r--iptables-restore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables-restore.c b/iptables-restore.c
index 8c6648e9..bf80e788 100644
--- a/iptables-restore.c
+++ b/iptables-restore.c
@@ -317,7 +317,7 @@ main(int argc, char *argv[])
xtables_error(OTHER_PROBLEM,
"Can't set policy `%s'"
" on `%s' line %u: %s\n",
- chain, policy, line,
+ policy, chain, line,
iptc_strerror(errno));
}