musl-1.1.5 does not support non-option arguments like '!'. This behaviour prevents iptables from working correctly with the negate operator, which is '!' Reproducible: Always Steps to Reproduce: 1. Try adding this iptables rule: iptables --append INPUT -p icmp -m icmp ! --icmp-type redirect -m comment --comment 'accept all icmp except redirects' -j ACCEPT 2. 3. Actual Results: The rule is not added. iptables display a message saying --icmp-type must be used (because of -m icmp). Expected Results: The rule should work. The same rule without the exclamation mark is successfully added, but it's not the same rule. The bug has already been fixed in upstream: http://git.musl-libc.org/cgit/musl/commit/?id=b72cd07f176b876aa51864d93aa8101477b1d732
Created attachment 392550 [details, diff] add support for non-option arguments extension to getopt
(In reply to Veovis from comment #1) > Created attachment 392550 [details, diff] [details, diff] > add support for non-option arguments extension to getopt I'm waiting for the next release. I'll ping dalias upstream.
Upstreams says there will be a release soon. musl is still undergoing rapid development so backporting doesn't make sense.