[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-tar] [PATCH] tar: tar -x without --incremental no longer sets atime
From: |
Paul Eggert |
Subject: |
[Bug-tar] [PATCH] tar: tar -x without --incremental no longer sets atime again |
Date: |
Thu, 16 Sep 2010 11:03:32 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.12) Gecko/20100826 Thunderbird/3.0.7 |
* 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 | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/extract.c b/src/extract.c
index 2296066..f3893f5 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)
--
1.7.2
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-tar] [PATCH] tar: tar -x without --incremental no longer sets atime again,
Paul Eggert <=