]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Windows resets atime at file close, so we can't use futimes() on Cygwin.
authorTim Kientzle <kientzle@gmail.com>
Mon, 18 Jan 2010 16:23:42 +0000 (11:23 -0500)
committerTim Kientzle <kientzle@gmail.com>
Mon, 18 Jan 2010 16:23:42 +0000 (11:23 -0500)
SVN-Revision: 1832

cpio/cpio.c

index 1b2622e2f36108d60cddcade3cd36df2f1639520..5c61fba3451e0f7991eddecfe3e92cea5c1bbd01 100644 (file)
@@ -766,7 +766,7 @@ restore_time(struct cpio *cpio, struct archive_entry *entry,
         times[0].tv_sec = archive_entry_atime(entry);
         times[0].tv_usec = archive_entry_atime_nsec(entry) / 1000;
 
-#ifdef HAVE_FUTIMES
+#if defined(HAVE_FUTIMES) && !defined(__CYGWIN__)
         if (fd >= 0 && futimes(fd, times) == 0)
                return (fd);
 #endif