]> sjero.net Git - wget/blobdiff - src/ftp.c
[svn] Compensate for MS Windows two-second granularity of file modification
[wget] / src / ftp.c
index b45a7b52b4e4395da3ed34e996e42bf43bfa029e..c0ded718b718497dac8ca1c3143143bbf08db3cc 100644 (file)
--- a/src/ftp.c
+++ b/src/ftp.c
@@ -1302,6 +1302,11 @@ ftp_retrieve_list (struct url *u, struct fileinfo *f, ccon *con)
              /* Else, get it from the file.  */
              local_size = st.st_size;
              tml = st.st_mtime;
+#ifdef WINDOWS
+             /* Modification time granularity is 2 seconds for Windows, so
+                increase local time by 1 second for later comparison. */
+             tml++;
+#endif
               /* Compare file sizes only for servers that tell us correct
                  values. Assumme sizes being equal for servers that lie
                  about file size.  */