bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] tar's use of futimens


From: Paul Eggert
Subject: Re: [Bug-tar] tar's use of futimens
Date: Tue, 29 May 2007 09:48:40 -0700
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

Jonathan Smith <address@hidden> writes:

> Older versions of gnulib will not compile against glibc-2.6, since the latter
> defines futimens differently (supposedly to be compliant with an as-of-yet
> unreleased POSIX spec).

A POSIX spec that was inspired by gnulib, as it happens.

> I was hoping you'd update gnulib and s/futimens/gl_futimens/ for
> your next release

We normally use the latest gnulib for releases.  I installed the
following patch to work around the current glitch in CVS tar.
However, gnulib reallly needs to get fixed to just use futimens
according to the new standard; when that happens I'll change GNU tar
back.

2007-05-29  Paul Eggert  <address@hidden>

        * src/misc.c (set_file_atime): Use gl_futimens, not futimens,
        due to gnulib change.

--- src/misc.c  3 Apr 2007 21:52:20 -0000       1.38
+++ src/misc.c  29 May 2007 16:48:19 -0000
@@ -1,7 +1,7 @@
 /* Miscellaneous functions, not really specific to GNU tar.

    Copyright (C) 1988, 1992, 1994, 1995, 1996, 1997, 1999, 2000, 2001,
-   2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+   2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.

    This program is free software; you can redistribute it and/or modify it
    under the terms of the GNU General Public License as published by the
@@ -516,7 +516,7 @@ set_file_atime (int fd, char const *file
     }
 #endif

-  return futimens (fd, file, timespec);
+  return gl_futimens (fd, file, timespec);
 }

 /* A description of a working directory.  */




reply via email to

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