diff options
author | jani@a193-229-222-105.elisa-laajakaista.fi <> | 2005-04-19 00:22:57 +0300 |
---|---|---|
committer | jani@a193-229-222-105.elisa-laajakaista.fi <> | 2005-04-19 00:22:57 +0300 |
commit | 1658d737b3fdb1417854cc4d34d5c4fe49f7c265 (patch) | |
tree | 9fb67ff27e91dbf502ca3c7c416ad408498560ee /mysys | |
parent | 969263cf1df22b74be8da7d48878075c7f1edcce (diff) | |
download | mariadb-git-1658d737b3fdb1417854cc4d34d5c4fe49f7c265.tar.gz |
Fixed Bug#6593, "Inconsistency in handling option prefixes (--skip, --disable, etc.)"
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/my_getopt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mysys/my_getopt.c b/mysys/my_getopt.c index 53e46932167..5e93ad56cb5 100644 --- a/mysys/my_getopt.c +++ b/mysys/my_getopt.c @@ -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 |