diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2010-09-16 11:02:08 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2010-09-16 11:02:26 -0700 |
commit | e3fdb78d4bf8e7b08587804a34a4e476f67d78b8 (patch) | |
tree | a8757192905267390b3ff43ae4991d7e3c6b91be | |
parent | d9458886432a92230e432e8e8492703c7afb8272 (diff) | |
download | tar-e3fdb78d4bf8e7b08587804a34a4e476f67d78b8.tar.gz |
tar: tar -x without --incremental no longer sets atime again
* 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.
-rw-r--r-- | src/extract.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/extract.c b/src/extract.c index 22960665..f3893f58 100644 --- a/src/extract.c +++ b/src/extract.c @@ -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) |