summaryrefslogtreecommitdiffstats
path: root/iptables-restore.c
diff options
context:
space:
mode:
authorlaforge <laforge>2001-10-22 15:16:21 +0000
committerlaforge <laforge>2001-10-22 15:16:21 +0000
commitf3420534036a6accc703bac2af57b203cf202a32 (patch)
tree1c9ff1112edb5c41adc2a234fdd1aa7fab283d8c /iptables-restore.c
parente42e7b7ffdaaae14d3908a02f2fc594686cde6cc (diff)
check for --table as well as -t (Andreas Ferber)
Diffstat (limited to 'iptables-restore.c')
-rw-r--r--iptables-restore.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/iptables-restore.c b/iptables-restore.c
index 2a18a09..fe70aae 100644
--- a/iptables-restore.c
+++ b/iptables-restore.c
@@ -4,7 +4,7 @@
*
* This coude is distributed under the terms of GNU GPL
*
- * $Id: iptables-restore.c,v 1.16 2001/10/16 09:51:33 laforge Exp $
+ * $Id: iptables-restore.c,v 1.17 2001/10/21 14:11:54 laforge Exp $
*/
#include <getopt.h>
@@ -338,7 +338,8 @@ int main(int argc, char *argv[])
*(param_buffer+param_len) = '\0';
/* check if table name specified */
- if (!strncmp(param_buffer, "-t", 3)) {
+ if (!strncmp(param_buffer, "-t", 3)
+ || !strncmp(param_buffer, "--table", 8)) {
exit_error(PARAMETER_PROBLEM,
"Line %u seems to have a "
"-t table option.\n", line);