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

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