[Bug 865] New: Misparsed command line containing --line

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Sat Oct 19 22:54:49 CEST 2013


https://bugzilla.netfilter.org/show_bug.cgi?id=865

           Summary: Misparsed command line containing --line
           Product: iptables
           Version: 1.4.x
          Platform: arm
        OS/Version: other
            Status: NEW
          Severity: major
          Priority: P4
         Component: iptables
        AssignedTo: netfilter-buglog at lists.netfilter.org
        ReportedBy: eric.bock.1980 at gmail.com
   Estimated Hours: 2.0


Note: the error message for --line[-numbers] contains <hyphen><zero>.  There is
neither a short option zero nor a short option O.

[ 0 ] app_42 at android:/# iptables -v --line -A OUTPUT
iptables v1.4.10: Illegal option `-0' with this command

Try `iptables -h' or 'iptables --help' for more information.
[ 2 ] app_42 at android:/# iptables -v0 -A OUTPUT
iptables v1.4.10: option `-v0' requires an argument
Try `iptables -h' or 'iptables --help' for more information.
[ 2 ] app_42 at android:/# iptables -v -0 -A OUTPUT
iptables v1.4.10: option `-0' requires an argument
Try `iptables -h' or 'iptables --help' for more information.
[ 2 ] app_42 at android:/# iptables -v -0 foo -A OUTPUT
iptables v1.4.10: option `-0' requires an argument
Try `iptables -h' or 'iptables --help' for more information.
[ 2 ] app_42 at android:/# iptables -v -0 foo bar -A OUTPUT
iptables v1.4.10: option `-0' requires an argument
Try `iptables -h' or 'iptables --help' for more information.
[ 2 ] app_42 at android:/# iptables -v -0 1 2 -A OUTPUT
iptables v1.4.10: option `-0' requires an argument
Try `iptables -h' or 'iptables --help' for more information.
[ 2 ] app_42 at android:/#

Short option O produces the same errors:

[ 2 ] app_42 at android:/# iptables -v -O 1 2 -A OUTPUT
iptables v1.4.10: option `-O' requires an argument
Try `iptables -h' or 'iptables --help' for more information.
[ 2 ] app_42 at android:/#

As it turns out, this is a situation in which iptables processes the entire
command line before attempting to access the filter table, so -A does not
short-circuit the error for ordinary users.

-- 
Configure bugmail: https://bugzilla.netfilter.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the netfilter-buglog mailing list