Blame SOURCES/tar-1.28-atime-rofs.patch
|
|
990d53 |
From 71769b9ea3c12b7fbb39fee2e9f4a4c1c36c0d0b Mon Sep 17 00:00:00 2001
|
|
|
990d53 |
From: rpm-build <rpm-build>
|
|
|
990d53 |
Date: Mon, 28 Jul 2014 08:13:31 +0200
|
|
|
990d53 |
Subject: [PATCH 4/9] utime & read-only FS
|
|
|
990d53 |
|
|
|
990d53 |
Ignore errors from setting utime() for source file on read-only
|
|
|
990d53 |
file-system.
|
|
|
990d53 |
|
|
|
990d53 |
Resolves: #500742
|
|
|
990d53 |
|
|
|
990d53 |
Upstream bugreport (still downstream):
|
|
|
990d53 |
http://lists.gnu.org/archive/html/bug-tar/2009-06/msg00016.html
|
|
|
990d53 |
|
|
|
990d53 |
---
|
|
|
990d53 |
src/create.c | 3 ++-
|
|
|
990d53 |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
990d53 |
|
|
|
990d53 |
diff --git a/src/create.c b/src/create.c
|
|
|
990d53 |
index e2f4ede..f644f23 100644
|
|
|
990d53 |
--- a/src/create.c
|
|
|
990d53 |
+++ b/src/create.c
|
|
|
990d53 |
@@ -1824,7 +1824,8 @@ dump_file0 (struct tar_stat_info *st, char const *name, char const *p)
|
|
|
990d53 |
}
|
|
|
990d53 |
else if (atime_preserve_option == replace_atime_preserve
|
|
|
990d53 |
&& fd && (is_dir || original_size != 0)
|
|
|
990d53 |
- && set_file_atime (fd, parentfd, name, st->atime) != 0)
|
|
|
990d53 |
+ && set_file_atime (fd, parentfd, name, st->atime) != 0
|
|
|
990d53 |
+ && errno != EROFS )
|
|
|
990d53 |
utime_error (p);
|
|
|
990d53 |
}
|
|
|
990d53 |
|
|
|
990d53 |
--
|
|
|
990d53 |
1.9.3
|
|
|
990d53 |
|