From e3f21bc0ac937dd8546389435b081246504874d4 Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Mon, 18 Jan 2010 11:23:42 -0500 Subject: [PATCH] Windows resets atime at file close, so we can't use futimes() on Cygwin. SVN-Revision: 1832 --- cpio/cpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpio/cpio.c b/cpio/cpio.c index 1b2622e2f..5c61fba34 100644 --- a/cpio/cpio.c +++ b/cpio/cpio.c @@ -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 -- 2.47.3