[Bug 774] iptables-restore can't parses the quoted parameter correctly.

bugzilla-daemon at bugzilla.netfilter.org bugzilla-daemon at bugzilla.netfilter.org
Sun Jul 22 20:09:16 CEST 2012


http://bugzilla.netfilter.org/show_bug.cgi?id=774

pl.bugs2 at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pl.bugs2 at gmail.com

--- Comment #7 from pl.bugs2 at gmail.com 2012-07-22 20:09:16 CEST ---
(In reply to comment #0)
> Created attachment 378 [details]
> The simple patch to correct the parsing of quoted parameter.
> 
> iptables-restore can't parse the parameter which is
> bundled with double-quotation character("").
> 
> for instance, the following text data was registered
> by "iptables-restore -n" command.
> 
>     *filter
>     -A OUTPUT -m string --string "FOOO" --algo bm -j ACCEPT
>     COMMIT
> 
> Then, the contents of registration are checked by
> "iptables-save" command, 
> 
>     $ iptables-save |grep string
>     -A OUTPUT -m string --string "--st" --algo bm --to 65535 -j ACCEPT
> 
> the parameter "FOO" is corrupted obviously to the one
> parameter before,
> 
> This seems the simple bug. I tried to make the simple
> patch. If this patch become to help to you even a little,
> I'm happy.
> 
> regards,

Hello,

Thank you for attaching your patch. It solves the problem for me on Debian.

Cheers.

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



More information about the netfilter-buglog mailing list