Skip to content
Snippets Groups Projects
Commit d49f9039 authored by John Crispin's avatar John Crispin
Browse files

musl: add getopt support for non-option arguments


musl libc doesn't support the GNU getopt extension to parse non-option
arguments when the optstring starts with '-'.

This extension is used by some utilities, notably iptables, that
currently return with errors even with perfectly valid invocations.

The patch adds the code needed by getopt.c and getopt_long.c to
implement that extension.

Signed-off-by: default avatarGianluca Anzolin <gianluca@sottospazio.it>

SVN-Revision: 43309
parent bd164f23
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment