#18327: iptables problem with musl
---------------------------+---------------------------
Reporter: barbaracus@… | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: packages | Version: Trunk
Resolution: | Keywords: iptables musl
---------------------------+---------------------------
Comment (by barbaracus@…):
Replying to [comment:1 anonymous]:
> Replying to [ticket:18327 barbaracus@…]:
> >
> > Also wrapping the getopt() calls in iptables in a helper function, say
xgetopt(), which takes care of the quotation mark could be an idea.
>
> I've cooked up a patch (see the attachment).
>
> It seems to work on glibc with POSIXLY_CORRECT enabled but I've yet to
test it on musl.
>
> A similar patch would be needed for ip6tables.c
I've just tested the patch with musl on a TP-LINK TL-WR841nd-v5 and it
just works! :D
If this kind of approach seems reasonable I'll update the patch to take
care also of ip6tables.
Thank you,
--
Ticket URL: <https://dev.openwrt.org/ticket/18327#comment:3>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets