X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fgetopt.c;h=2af8352ee9c93ba7d19e0c8e34fd37306332b885;hb=81979bc8e213e442acf9f2bef9f6e227602c5b70;hp=23510d8afec30de37e89f7d3eeca72854cd6f57e;hpb=3d7fa330593948749e382e99a28a49ddf6878bde;p=gnulib.git diff --git a/lib/getopt.c b/lib/getopt.c index 23510d8af..2af8352ee 100644 --- a/lib/getopt.c +++ b/lib/getopt.c @@ -829,7 +829,7 @@ _getopt_internal_r (int argc, char **argv, const char *optstring, return '?'; } /* Convenience. Treat POSIX -W foo same as long option --foo */ - if (temp[0] == 'W' && temp[1] == ';') + if (temp[0] == 'W' && temp[1] == ';' && longopts) { char *nameend; const struct option *p;