]> Dogcows Code - chaz/tar/commitdiff
tar: tar -x without --incremental no longer sets atime again
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 16 Sep 2010 18:02:08 +0000 (11:02 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 16 Sep 2010 18:02:26 +0000 (11:02 -0700)
* src/extract.c (set_stat): Use UTIME_OMIT rather than UTIME_NOW.
The UTIME_NOW was there only to emulate the previous behavior of
using the current time, and the previous behavior was there only
because before we started assuming POSIX.1-2008 there was no
portable way to get the effect of UTIME_NOW.

src/extract.c

index 2296066591624d6fb7bd8b8089632402cef3b225..f3893f58807560cbf507d351b9b3385609a2fdf4 100644 (file)
@@ -307,7 +307,7 @@ set_stat (char const *file_name,
          if (incremental_option)
            ts[0] = st->atime;
          else
-           ts[0].tv_nsec = UTIME_NOW;
+           ts[0].tv_nsec = UTIME_OMIT;
          ts[1] = st->mtime;
 
          if (fd_utimensat (fd, AT_FDCWD, file_name, ts, 0) != 0)
This page took 0.025896 seconds and 4 git commands to generate.