projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccd77b8
)
(_getopt_internal): Don't recognize an option name as ambiguous if it's a prefix...
author
Ulrich Drepper
<drepper@redhat.com>
Wed, 6 Sep 2000 17:57:53 +0000
(17:57 +0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Wed, 6 Sep 2000 17:57:53 +0000
(17:57 +0000)
posix/getopt.c
patch
|
blob
|
history
diff --git
a/posix/getopt.c
b/posix/getopt.c
index
f1add57
..
2ad4ee9
100644
(file)
--- a/
posix/getopt.c
+++ b/
posix/getopt.c
@@
-673,7
+673,9
@@
_getopt_internal (argc, argv, optstring, longopts, longind, long_only)
pfound = p;
indfound = option_index;
}
- else
+ else if (pfound->has_arg != p->has_arg
+ || pfound->flag != p->flag
+ || pfound->val != p->val)
/* Second or later nonexact match found. */
ambig = 1;
}