Fixed Bug#6593, "Inconsistency in handling option prefixes (--skip, --disable, etc.)"

This commit is contained in:
unknown 2005-04-19 00:22:57 +03:00
commit e084746626

View file

@ -205,7 +205,8 @@ int handle_options(int *argc, char ***argv,
{
if (!getopt_compare_strings(special_opt_prefix[i], opt_str,
special_opt_prefix_lengths[i]) &&
opt_str[special_opt_prefix_lengths[i]] == '-')
(opt_str[special_opt_prefix_lengths[i]] == '-' ||
opt_str[special_opt_prefix_lengths[i]] == '_'))
{
/*
We were called with a special prefix, we can reuse opt_found