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

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