Projects
Factory:RISC-V:Base
tar
_service:tar_scm:tar-1.28-atime-rofs.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:tar-1.28-atime-rofs.patch of Package tar
From 71769b9ea3c12b7fbb39fee2e9f4a4c1c36c0d0b Mon Sep 17 00:00:00 2001 From: rpm-build <rpm-build> Date: Mon, 28 Jul 2014 08:13:31 +0200 Subject: [PATCH 4/9] utime & read-only FS Ignore errors from setting utime() for source file on read-only file-system. Resolves: #500742 Upstream bugreport (still downstream): http://lists.gnu.org/archive/html/bug-tar/2009-06/msg00016.html --- src/create.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/create.c b/src/create.c index 6c99c74..4ee8334 100644 --- a/src/create.c +++ b/src/create.c @@ -1840,7 +1840,8 @@ dump_file0 (struct tar_stat_info *st, char const *name, char const *p) } else if (atime_preserve_option == replace_atime_preserve && fd && (is_dir || original_size != 0) - && set_file_atime (fd, parentfd, name, st->atime) != 0) + && set_file_atime (fd, parentfd, name, st->atime) != 0 + && errno != EROFS ) utime_error (p); } -- 1.8.3.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2