Blame SOURCES/tar-1.28-atime-rofs.patch

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