summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-12-06 16:03:30 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-12-06 16:03:30 +0000
commit53c842c73a4a91fae6cec890a6ff5a108888b204 (patch)
tree446b366ed808fcae336d2932643bd693a85ec2f1 /sbin
parent4db7d1b76c426d5189d070799f97a4f147a607a8 (diff)
Fix two compatibility issues with our getopt_long_only() vs. the GNU version:
o Check for long options even when not at the beginning of an option. For instance, if -a is a short option w/o an arg and -static is a boolean long option then -astatic is valid for getopt_long_only(). o If a potential long argument does not match longopts and the first character is not a short option, print a warning and skip the rest of the argument. Also clean up some trailing whitespace and change return value of parse_long_options() from -2 to -1 when unmatched and in long_only mode. With these fixes the binutils ld seems happy with our getopt_long_only()
Diffstat (limited to 'sbin')
0 files changed, 0 insertions, 0 deletions