From c5300d11308ccb429d551c32dffe752575c30b77 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sun, 17 Jun 2012 11:49:22 +0200 Subject: iptables-restore: warn about -t in rule lines save-restore syntax uses *table, not -t table. Signed-off-by: Jan Engelhardt Signed-off-by: Pablo Neira Ayuso --- iptables/iptables-restore.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'iptables/iptables-restore.c') diff --git a/iptables/iptables-restore.c b/iptables/iptables-restore.c index 9f51f993..f21754a4 100644 --- a/iptables/iptables-restore.c +++ b/iptables/iptables-restore.c @@ -416,8 +416,10 @@ iptables_restore_main(int argc, char *argv[]) if (!strncmp(param_buffer, "-t", 2) || !strncmp(param_buffer, "--table", 8)) { xtables_error(PARAMETER_PROBLEM, - "Line %u seems to have a " - "-t table option.\n", line); + "The -t option (seen in " + "line %u) cannot be used " + "in iptables-restore.\n", + line); exit(1); } -- cgit v1.2.3