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

parent 969263cf
...@@ -205,7 +205,8 @@ int handle_options(int *argc, char ***argv, ...@@ -205,7 +205,8 @@ int handle_options(int *argc, char ***argv,
{ {
if (!getopt_compare_strings(special_opt_prefix[i], opt_str, if (!getopt_compare_strings(special_opt_prefix[i], opt_str,
special_opt_prefix_lengths[i]) && 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 We were called with a special prefix, we can reuse opt_found
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment