]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tool_operate: check for --disable case *sensitively*
authorDaniel Stenberg <daniel@haxx.se>
Thu, 4 Jul 2024 21:49:37 +0000 (23:49 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 5 Jul 2024 06:55:40 +0000 (08:55 +0200)
curl command line options are specified with the correct casing or they
don't match

Closes #14103

src/tool_operate.c

index 36a39c36592eeea58a435459fa65be1f8e52eb20..51c4041f2ed467fa17fe27f77daa57649dcab123 100644 (file)
@@ -2813,7 +2813,7 @@ CURLcode operate(struct GlobalConfig *global, int argc, argv_item_t argv[])
   /* Parse .curlrc if necessary */
   if((argc == 1) ||
      (first_arg && strncmp(first_arg, "-q", 2) &&
-      !curl_strequal(first_arg, "--disable"))) {
+      strcmp(first_arg, "--disable"))) {
     parseconfig(NULL, global); /* ignore possible failure */
 
     /* If we had no arguments then make sure a url was specified in .curlrc */