projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
115741f
)
(_getopt_internal): Update from glibc.
author
Jim Meyering
<jim@meyering.net>
Sun, 10 Sep 2000 07:31:44 +0000
(07:31 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sun, 10 Sep 2000 07:31:44 +0000
(07:31 +0000)
lib/getopt.c
patch
|
blob
|
history
diff --git
a/lib/getopt.c
b/lib/getopt.c
index c7ddad0fe81111dd7ed3f0ec0947a83f35204902..a5bc2c95e65940b941d2178ccc2afbdca6d026a2 100644
(file)
--- a/
lib/getopt.c
+++ b/
lib/getopt.c
@@
-671,7
+671,8
@@
_getopt_internal (argc, argv, optstring, longopts, longind, long_only)
pfound = p;
indfound = option_index;
}
- else if (pfound->has_arg != p->has_arg
+ else if (long_only
+ || pfound->has_arg != p->has_arg
|| pfound->flag != p->flag
|| pfound->val != p->val)
/* Second or later nonexact match found. */