mirror of
https://github.com/curl/curl.git
synced 2026-07-24 15:57:18 +03:00
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:
parent
e99e5ab820
commit
6a5e020d4d
1 changed files with 1 additions and 1 deletions
|
|
@ -2542,7 +2542,7 @@ CURLcode operate(struct GlobalConfig *global, int argc, argv_item_t argv[])
|
||||||
|
|
||||||
/* Parse .curlrc if necessary */
|
/* Parse .curlrc if necessary */
|
||||||
if((argc == 1) ||
|
if((argc == 1) ||
|
||||||
(!curl_strequal(first_arg, "-q") &&
|
(strncmp(first_arg, "-q", 2) &&
|
||||||
!curl_strequal(first_arg, "--disable"))) {
|
!curl_strequal(first_arg, "--disable"))) {
|
||||||
parseconfig(NULL, global); /* ignore possible failure */
|
parseconfig(NULL, global); /* ignore possible failure */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue