aboutsummaryrefslogtreecommitdiff
path: root/lib
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 /lib
parente27ec862c38e4e34100c4bd4ad7440eeefccb26a (diff)
CURLINFO_FILETIME now works for file:// transfers as well
Diffstat (limited to 'lib')
-rw-r--r--lib/file.c2
1 files changed, 2 insertions, 0 deletions
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;
}