bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] interix timestamp issues


From: Paul Eggert
Subject: Re: [Bug-tar] interix timestamp issues
Date: Thu, 12 May 2011 09:10:32 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Thunderbird/3.1.10

On 05/12/11 01:38, Markus Duft wrote:
> this doesn't help, and doesn't even compile, as interix also doesn't have 
> sync()

OK, how about this patch to utimens.c instead?

diff --git a/lib/utimens.c b/lib/utimens.c
index c190411..f738c68 100644
--- a/lib/utimens.c
+++ b/lib/utimens.c
@@ -58,6 +58,13 @@ struct utimbuf
 # define REPLACE_FUNC_STAT_FILE 0
 #endif
 
+/* Interix's NFS implementation seems particularly bug-prone; see
+   <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00293.html>.  */
+#if __INTERIX
+# define HAVE_BUGGY_NFS_TIME_STAMPS 1
+static void sync (void) {}
+#endif
+
 #if HAVE_UTIMENSAT || HAVE_FUTIMENS
 /* Cache variables for whether the utimensat syscall works; used to
    avoid calling the syscall if we know it will just fail with ENOSYS,



reply via email to

[Prev in Thread] Current Thread [Next in Thread]