All of lore.kernel.org
 help / color / mirror / Atom feed
* [IPTABLES PATCH] chain name should not start with '!'
@ 2005-06-03  8:03 Yasuyuki KOZAKAI
  2005-06-03  8:33 ` Pablo Neira
  2005-06-11 15:10 ` Patrick McHardy
  0 siblings, 2 replies; 6+ messages in thread
From: Yasuyuki KOZAKAI @ 2005-06-03  8:03 UTC (permalink / raw)
  To: netfilter-devel

[-- Attachment #1: Type: Text/Plain, Size: 217 bytes --]


Hi,

This patch fixes the bug allows to create the chain with name "!".

Regards,

-----------------------------------------------------------------
Yasuyuki Kozakai @ USAGI Project <yasuyuki.kozakai@toshiba.co.jp>


[-- Attachment #2: iptables.patch --]
[-- Type: Text/Plain, Size: 533 bytes --]

Index: iptables.c
===================================================================
--- iptables.c	(revision 3951)
+++ iptables.c	(working copy)
@@ -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 "

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-06-13  0:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-03  8:03 [IPTABLES PATCH] chain name should not start with '!' Yasuyuki KOZAKAI
2005-06-03  8:33 ` Pablo Neira
2005-06-03  9:24   ` Yasuyuki KOZAKAI
2005-06-11 15:10 ` Patrick McHardy
2005-06-13  0:50   ` Yasuyuki KOZAKAI
2005-06-13  0:54     ` Patrick McHardy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.