aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-11-04 09:57:36 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-11-04 09:57:36 +0000
commit5ca2a8318d0df95d24180b72040b21a21d9ba5ef (patch)
treef8221c71d4967767de0c3e59633db3d36e3f9658
parente27ec862c38e4e34100c4bd4ad7440eeefccb26a (diff)
CURLINFO_FILETIME now works for file:// transfers as well
-rw-r--r--CHANGES3
-rw-r--r--RELEASE-NOTES3
-rw-r--r--lib/file.c2
3 files changed, 7 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index f24eb3dd1..2901c09f8 100644
--- a/CHANGES
+++ b/CHANGES
@@ -6,6 +6,9 @@
Changelog
+Daniel Stenberg (4 Nov 2008)
+- CURLINFO_FILETIME now works for file:// transfers as well
+
Daniel Stenberg (3 Nov 2008)
- 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
diff --git a/RELEASE-NOTES b/RELEASE-NOTES
index eba0012f6..896f0e6c9 100644
--- a/RELEASE-NOTES
+++ b/RELEASE-NOTES
@@ -42,7 +42,8 @@ This release includes the following bugfixes:
o Solaris builds get _REENTRANT defined properly and work again
o Garbage sent on chunky upload after curl_easy_pause()
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:
diff --git a/lib/file.c b/lib/file.c
index de5d52b32..b0af2fcd9 100644
--- a/lib/file.c
+++ b/lib/file.c
@@ -451,6 +451,8 @@ static CURLcode file_do(struct connectdata *conn, bool *done)
if( -1 != fstat(fd, &statbuf)) {
/* we could stat it, then read out the size */
expected_size = statbuf.st_size;
+ /* and store the modification time */
+ data->info.filetime = (long)statbuf.st_mtime;
fstated = TRUE;
}