From: Harald Welte Date: Mon, 22 Oct 2001 15:16:21 +0000 (+0000) Subject: check for --table as well as -t (Andreas Ferber) X-Git-Tag: v1.2.5~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=48a6f900fa25a4dd2d9b39cff4bf1ab83356d967;p=thirdparty%2Fiptables.git check for --table as well as -t (Andreas Ferber) --- diff --git a/ip6tables-restore.c b/ip6tables-restore.c index 415f1e4d..1b54b237 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); diff --git a/iptables-restore.c b/iptables-restore.c index 2a18a095..fe70aae5 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 @@ -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);