]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tool_operate: keep the progress meter for --out-null
authorDaniel Stenberg <daniel@haxx.se>
Fri, 19 Sep 2025 06:47:15 +0000 (08:47 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 19 Sep 2025 07:13:12 +0000 (09:13 +0200)
Fixes #18607
Closes #18609

src/tool_operate.c

index 75926d704ba4123b81f2df27c16de269646ea80e..8ca3c14e8f12ce6c31cfa60cd8c5501761afedf1 100644 (file)
@@ -1277,8 +1277,8 @@ static CURLcode single_transfer(struct OperationConfig *config,
         config->resume_from = -1; /* -1 will then force get-it-yourself */
     }
 
-    if(output_expected(per->url, per->uploadfile) && outs->stream &&
-       isatty(fileno(outs->stream)))
+    if(!outs->out_null && output_expected(per->url, per->uploadfile) &&
+       outs->stream && isatty(fileno(outs->stream)))
       /* we send the output to a tty, therefore we switch off the progress
          meter */
       per->noprogress = global->noprogress = global->isatty = TRUE;