mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
CURLINFO_FILETIME now works for file:// transfers as well
This commit is contained in:
parent
e27ec862c3
commit
5ca2a8318d
3
CHANGES
3
CHANGES
@ -6,6 +6,9 @@
|
|||||||
|
|
||||||
Changelog
|
Changelog
|
||||||
|
|
||||||
|
Daniel Stenberg (4 Nov 2008)
|
||||||
|
- CURLINFO_FILETIME now works for file:// transfers as well
|
||||||
|
|
||||||
Daniel Stenberg (3 Nov 2008)
|
Daniel Stenberg (3 Nov 2008)
|
||||||
- Bug #2218480 (http://curl.haxx.se/bug/view.cgi?id=2218480) pointed out a
|
- Bug #2218480 (http://curl.haxx.se/bug/view.cgi?id=2218480) pointed out a
|
||||||
problem with my CURLINFO_PRIMARY_IP fix from October 7th that caused a NULL
|
problem with my CURLINFO_PRIMARY_IP fix from October 7th that caused a NULL
|
||||||
|
@ -42,7 +42,8 @@ This release includes the following bugfixes:
|
|||||||
o Solaris builds get _REENTRANT defined properly and work again
|
o Solaris builds get _REENTRANT defined properly and work again
|
||||||
o Garbage sent on chunky upload after curl_easy_pause()
|
o Garbage sent on chunky upload after curl_easy_pause()
|
||||||
o ipv4 name resolves when libcurl is built with ipv6-enabled c-ares
|
o ipv4 name resolves when libcurl is built with ipv6-enabled c-ares
|
||||||
o undersized IPv6 address internal buffer truncates long IPv6 addresses
|
o undersized IPv6 address internal buffer truncated long IPv6 addresses
|
||||||
|
o CURLINFO_FILETIME works for file:// transfers as well
|
||||||
|
|
||||||
This release includes the following known bugs:
|
This release includes the following known bugs:
|
||||||
|
|
||||||
|
@ -451,6 +451,8 @@ static CURLcode file_do(struct connectdata *conn, bool *done)
|
|||||||
if( -1 != fstat(fd, &statbuf)) {
|
if( -1 != fstat(fd, &statbuf)) {
|
||||||
/* we could stat it, then read out the size */
|
/* we could stat it, then read out the size */
|
||||||
expected_size = statbuf.st_size;
|
expected_size = statbuf.st_size;
|
||||||
|
/* and store the modification time */
|
||||||
|
data->info.filetime = (long)statbuf.st_mtime;
|
||||||
fstated = TRUE;
|
fstated = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user