mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
(_getopt_internal): Don't recognize an option name as ambiguous if it's a prefix for more than one name but the other struct option values are identical.
This commit is contained in:
parent
ccd77b890b
commit
b8b17701ae
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue