curl: fix handling of -q option
The match of the "-q" option (short for "--disable") should: a) allow concatenation with other single-letters; and b) be case-sensitive, lest confusing with "-Q" ("--quote") Closes #6364
This commit is contained in:
Родитель
e99e5ab820
Коммит
6a5e020d4d
|
@ -2542,7 +2542,7 @@ CURLcode operate(struct GlobalConfig *global, int argc, argv_item_t argv[])
|
|||
|
||||
/* Parse .curlrc if necessary */
|
||||
if((argc == 1) ||
|
||||
(!curl_strequal(first_arg, "-q") &&
|
||||
(strncmp(first_arg, "-q", 2) &&
|
||||
!curl_strequal(first_arg, "--disable"))) {
|
||||
parseconfig(NULL, global); /* ignore possible failure */
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче