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

bugzilla-daemon at bugzilla.netfilter.org bugzilla-daemon at bugzilla.netfilter.org
Mon Jul 23 13:24:32 CEST 2012


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

Pablo Neira Ayuso <pablo at netfilter.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pablo at netfilter.org

--- Comment #8 from Pablo Neira Ayuso <pablo at netfilter.org> 2012-07-23 13:24:31 CEST ---
(In reply to comment #7)
> (In reply to comment #0)
> > Created attachment 378 [details] [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.

I'm proposing this patch instead:

marc.info/?l=netfilter-devel&m=134304022429189&w=2

If nobody complains, I'll merge it to mainstream.

-- 
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.
You are watching someone on the CC list of the bug.



More information about the netfilter-buglog mailing list