From: Daniel Stenberg Date: Fri, 19 Sep 2025 06:47:15 +0000 (+0200) Subject: tool_operate: keep the progress meter for --out-null X-Git-Tag: rc-8_17_0-1~347 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9fb8d567ca96659dc0d35cc82f160a721adf6edd;p=thirdparty%2Fcurl.git tool_operate: keep the progress meter for --out-null Fixes #18607 Closes #18609 --- diff --git a/src/tool_operate.c b/src/tool_operate.c index 75926d704b..8ca3c14e8f 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -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;