curl: move fprintf outputs to warnf

For setting and getting time of the download. To make the outputs
respect --silent etc.

Reported-by: Viktor Szakats
Fixes #6533
Closes #6535
This commit is contained in:
Daniel Stenberg 2021-01-26 16:52:03 +01:00
parent d3ca0771d2
commit 71acece933
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
4 changed files with 41 additions and 47 deletions

View file

@ -644,7 +644,7 @@ static CURLcode post_per_transfer(struct GlobalConfig *global,
/* Ask libcurl if we got a remote file time */
curl_off_t filetime = -1;
curl_easy_getinfo(curl, CURLINFO_FILETIME_T, &filetime);
setfiletime(filetime, outs->filename, config->global->errors);
setfiletime(filetime, outs->filename, global);
}
/* Close function-local opened file descriptors */