mirror of
https://github.com/curl/curl.git
synced 2026-08-03 05:20:28 +03:00
curl: include the file name in --xattr/--remote-time error msgs
This commit is contained in:
parent
f42ee77adb
commit
a705f28bb3
2 changed files with 4 additions and 4 deletions
|
|
@ -140,7 +140,7 @@ void setfiletime(curl_off_t filetime, const char *filename,
|
|||
times[0].tv_usec = times[1].tv_usec = 0;
|
||||
if(utimes(filename, times)) {
|
||||
warnf(global, "Failed to set filetime %" CURL_FORMAT_CURL_OFF_T
|
||||
" on outfile: %s\n", filetime, strerror(errno));
|
||||
" on '%s': %s\n", filetime, filename, strerror(errno));
|
||||
}
|
||||
|
||||
#elif defined(HAVE_UTIME)
|
||||
|
|
@ -149,7 +149,7 @@ void setfiletime(curl_off_t filetime, const char *filename,
|
|||
times.modtime = (time_t)filetime;
|
||||
if(utime(filename, ×)) {
|
||||
warnf(global, "Failed to set filetime %" CURL_FORMAT_CURL_OFF_T
|
||||
" on outfile: %s\n", filetime, strerror(errno));
|
||||
" on '%s': %s\n", filetime, filename, strerror(errno));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
|
|
@ -374,8 +374,8 @@ static CURLcode post_per_transfer(struct GlobalConfig *global,
|
|||
if(!result && config->xattr && outs->fopened && outs->stream) {
|
||||
int rc = fwrite_xattr(curl, fileno(outs->stream));
|
||||
if(rc)
|
||||
warnf(config->global, "Error setting extended attributes: %s\n",
|
||||
strerror(errno));
|
||||
warnf(config->global, "Error setting extended attributes on '%s': %s\n",
|
||||
outs->filename, strerror(errno));
|
||||
}
|
||||
|
||||
if(!result && !outs->stream && !outs->bytes) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue