Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
(_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.
  • Loading branch information
Ulrich Drepper committed Sep 6, 2000
1 parent ccd77b8 commit b8b1770
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion posix/getopt.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit b8b1770

Please sign in to comment.