Package: iptables
Version: 1.4.3.2-2
Severity: normal
Tags: patch

The --line-numbers option is one which you want to use in general. Thus,
a short option should be available. After looking into the code, I noticed
that '0' was assigned to --line-numbers. However, it seems to be missing in
the option string which is then passed to getopt_long.

Patches for both are attached, they seem to work fine. Documentation is not
yet modified.
--- iptables.c.O	2009-11-05 20:14:50.020777773 +0100
+++ iptables.c	2009-11-05 18:39:36.981327880 +0100
@@ -1353,7 +1353,7 @@
 	opterr = 0;
 
 	while ((c = getopt_long(argc, argv,
-	   "-A:D:R:I:L::S::M:F::Z::N:X::E:P:Vh::o:p:s:d:j:i:fbvnt:m:xc:g:",
+	   "-A:D:R:I:L::S::M:F::Z::N:X::E:P:Vh::o:p:s:d:j:i:fbvnt:m:xc:g:0",
 					   opts, NULL)) != -1) {
 		switch (c) {
 			/*
--- ip6tables.c.O	2009-11-05 20:14:56.624780653 +0100
+++ ip6tables.c	2009-11-05 18:40:57.613325951 +0100
@@ -1331,7 +1331,7 @@
 	opterr = 0;
 
 	while ((c = getopt_long(argc, argv,
-	   "-A:D:R:I:L::S::M:F::Z::N:X::E:P:Vh::o:p:s:d:j:i:bvnt:m:xc:g:",
+	   "-A:D:R:I:L::S::M:F::Z::N:X::E:P:Vh::o:p:s:d:j:i:bvnt:m:xc:g:0",
 					   opts, NULL)) != -1) {
 		switch (c) {
 			/*

Reply via email to