Package: iptables
Version: 1.4.0-3
Severity: minor
On my debian sid for amd64, iptables 1.4.0 reports the wrong unknown argument:
it shows the previous one.
-- Example:
[EMAIL PROTECTED]:~$ sudo iptables --list -asdf
iptables v1.4.0: Unknown arg `--list'
Try `iptables -h' or 'iptables --help' for more information.
-- Proposed patch (already working on my system):
diff -ur a/iptables/ip6tables.c b/iptables/ip6tables.c
--- a/iptables/ip6tables.c 2008-03-05 19:53:30.000000000 +0100
+++ b/iptables/ip6tables.c 2008-03-05 19:54:20.000000000 +0100
@@ -1834,7 +1834,7 @@
if (!m)
exit_error(PARAMETER_PROBLEM,
"Unknown arg `%s'",
- argv[optind-1]);
+ argv[optind]);
}
}
invert = FALSE;
diff -ur a/iptables/iptables.c b/iptables/iptables.c
--- a/iptables/iptables.c 2008-03-05 19:53:30.000000000 +0100
+++ b/iptables/iptables.c 2008-03-05 19:54:10.000000000 +0100
@@ -1897,7 +1897,7 @@
if (!m)
exit_error(PARAMETER_PROBLEM,
"Unknown arg `%s'",
- argv[optind-1]);
+ argv[optind]);
}
}
invert = FALSE;
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.24-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages iptables depends on:
ii libc6 2.7-9 GNU C Library: Shared libraries
iptables recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]