getopt: handle W; without long options in getopt
authorEric Blake <eblake@redhat.com>
Thu, 7 Jul 2011 14:54:11 +0000 (08:54 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 7 Jul 2011 14:54:11 +0000 (08:54 -0600)
commitc4bf665bae3880a9a8974d64c1fad9fe2c80079f
tree38d3952b15566f82b53dba349c53c2fa139af406
parente10fff39499bc37a027be288215a54f3e8eb917b
getopt: handle W; without long options in getopt

This reverts commit cbf381169705782b144b2733798a62c11aa473a5, in
favor of the upstream glibc fix (commit 01636b214) plus a C89 fix.

[BZ #12922]
* lib/getopt.c (_getopt_internal_r): When "W;" is in short options
but no long options are defined, just return 'W'.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
lib/getopt.c