[Bug 1448] Report wrong command-line options

bugzilla-daemon at mindrot.org
Fri, 10 May 2013 05:20:49 -0000

--- Comment #6 from Darren Tucker <dtucker at zip.com.au> ---
ok, so it turns out the original upstream source in OpenBSD's getopt.c
had the same behaviour, but was replaced in 2004 with getopt_long.c
which doesn't.  For long-term maintainability I think we should switch.

What I'm going to do is
1) factor out the portability changes in getopt.c
2) add getopt_long.c to openssh and remove getopt.c
3) pull the portability changes into getopt_long.c