summaryrefslogtreecommitdiffstats
path: root/ip6tables-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 /ip6tables-restore.c
parente42e7b7ffdaaae14d3908a02f2fc594686cde6cc (diff)
check for --table as well as -t (Andreas Ferber)
Diffstat (limited to 'ip6tables-restore.c')
-rw-r--r--ip6tables-restore.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ip6tables-restore.c b/ip6tables-restore.c
index 415f1e4..1b54b23 100644
--- a/ip6tables-restore.c
+++ b/ip6tables-restore.c
@@ -343,7 +343,8 @@ int main(int argc, char *argv[])
param_len);
*(param_buffer+param_len) = '\0';
- 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);