summaryrefslogtreecommitdiff
path: root/lib/getopt.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-06-23 01:10:57 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2011-06-23 01:10:57 -0700
commit6dd7e40073d6f18bcb287b59256607caea17404a (patch)
tree1524f3b6e01ea057d8b03e8c5645404120d37f28 /lib/getopt.c
parent7efb4e0e62ed3e11e20d15821342c322b4101ae7 (diff)
downloademacs-6dd7e40073d6f18bcb287b59256607caea17404a.tar.gz
* lib/getopt.c, lib/stat.c, m4/gl-comp.m4: Merge from gnulib.
Diffstat (limited to 'lib/getopt.c')
-rw-r--r--lib/getopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/getopt.c b/lib/getopt.c
index 23510d8afec..2af8352ee9c 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;