From d3877bb01f3201577ed23795f8e9ae24a68449b6 Mon Sep 17 00:00:00 2001 From: "/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kaber/emailAddress=kaber@netfilter.org" Date: Mon, 13 Jun 2005 01:06:10 +0000 Subject: Chain name should not start with '!' (Yasuyuki Kozakai ) --- ip6tables.c | 4 ++-- iptables.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ip6tables.c b/ip6tables.c index 11d8cd1..fd38a2d 100644 --- a/ip6tables.c +++ b/ip6tables.c @@ -1822,10 +1822,10 @@ int do_command6(int argc, char *argv[], char **table, ip6tc_handle_t *handle) break; case 'N': - if (optarg && *optarg == '-') + if (optarg && (*optarg == '-' || *optarg == '!')) exit_error(PARAMETER_PROBLEM, "chain name not allowed to start " - "with `-'\n"); + "with `%c'\n", *optarg); if (find_target(optarg, TRY_LOAD)) exit_error(PARAMETER_PROBLEM, "chain name may not clash " diff --git a/iptables.c b/iptables.c index 33ee337..f8250ce 100644 --- a/iptables.c +++ b/iptables.c @@ -1925,10 +1925,10 @@ int do_command(int argc, char *argv[], char **table, iptc_handle_t *handle) break; case 'N': - if (optarg && *optarg == '-') + if (optarg && (*optarg == '-' || *optarg == '!')) exit_error(PARAMETER_PROBLEM, "chain name not allowed to start " - "with `-'\n"); + "with `%c'\n", *optarg); if (find_target(optarg, TRY_LOAD)) exit_error(PARAMETER_PROBLEM, "chain name may not clash " -- cgit v1.2.3