[netfilter-cvslog] r3981 - trunk/iptables

kaber at netfilter.org kaber at netfilter.org
Mon Jun 13 03:06:11 CEST 2005


Author: kaber at netfilter.org
Date: 2005-06-13 03:06:10 +0200 (Mon, 13 Jun 2005)
New Revision: 3981

Modified:
   trunk/iptables/ip6tables.c
   trunk/iptables/iptables.c
Log:
Chain name should not start with '!' (Yasuyuki Kozakai <yasuyuki.kozakai at toshiba.co.jp>)


Modified: trunk/iptables/ip6tables.c
===================================================================
--- trunk/iptables/ip6tables.c	2005-06-12 15:54:15 UTC (rev 3980)
+++ trunk/iptables/ip6tables.c	2005-06-13 01:06:10 UTC (rev 3981)
@@ -1822,10 +1822,10 @@
 			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 "

Modified: trunk/iptables/iptables.c
===================================================================
--- trunk/iptables/iptables.c	2005-06-12 15:54:15 UTC (rev 3980)
+++ trunk/iptables/iptables.c	2005-06-13 01:06:10 UTC (rev 3981)
@@ -1925,10 +1925,10 @@
 			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 "




More information about the netfilter-cvslog mailing list