rpms/tar/devel tar-1.22-atime-rofs.patch, NONE, 1.1 tar.spec, 1.79, 1.80

Ondrej Vasik ovasik at fedoraproject.org
Fri May 15 11:32:15 UTC 2009


Author: ovasik

Update of /cvs/extras/rpms/tar/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv5852

Modified Files:
	tar.spec 
Added Files:
	tar-1.22-atime-rofs.patch 
Log Message:
ignore errors from setting utime() for source file on read-only filesystem (#500742)

tar-1.22-atime-rofs.patch:

--- NEW FILE tar-1.22-atime-rofs.patch ---
diff -urNp tar-1.22-orig/src/create.c tar-1.22/src/create.c
--- tar-1.22-orig/src/create.c	2009-05-15 10:50:38.000000000 +0200
+++ tar-1.22/src/create.c	2009-05-15 10:51:52.000000000 +0200
@@ -1691,7 +1691,8 @@ dump_file0 (struct tar_stat_info *st, co
 		exit_status = TAREXIT_DIFFERS;
 	    }
 	  else if (atime_preserve_option == replace_atime_preserve
-		   && set_file_atime (fd, p, restore_times) != 0)
+		   && set_file_atime (fd, p, restore_times) != 0
+		   && errno != EROFS )
 	    utime_error (p);
 	}
 


Index: tar.spec
===================================================================
RCS file: /cvs/extras/rpms/tar/devel/tar.spec,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -p -r1.79 -r1.80
--- tar.spec	6 Mar 2009 12:26:56 -0000	1.79
+++ tar.spec	15 May 2009 11:31:43 -0000	1.80
@@ -2,7 +2,7 @@ Summary: A GNU file archiving program
 Name: tar
 Epoch: 2
 Version: 1.22
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: GPLv3+
 Group: Applications/Archiving
 URL: http://www.gnu.org/software/tar/
@@ -14,6 +14,7 @@ Patch2: tar-1.15.1-vfatTruncate.patch
 Patch3: tar-1.19-xattrs.patch
 Patch4: tar-1.19-xattrs-conf.patch
 Patch5: tar-1.17-wildcards.patch
+Patch6: tar-1.22-atime-rofs.patch
 Prereq: info
 BuildRequires: autoconf automake gzip texinfo gettext libacl-devel libselinux-devel gawk rsh
 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -39,6 +40,7 @@ the rmt package.
 %patch3 -p1 -b .xattrs
 %patch4 -p1 -b .xattrs-conf
 %patch5 -p1 -b .wildcards
+%patch6 -p1 -b .rofs
 
 %build
 %configure --bindir=/bin --libexecdir=/sbin
@@ -89,6 +91,10 @@ fi
 %{_infodir}/tar.info*
 
 %changelog
+* Fri May 15 2009 Ondrej Vasik <ovasik at redhat.com> 2:1.22-3
+- ignore errors from setting utime() for source file
+  on read-only filesystem (#500742)
+
 * Fri Mar 06 2009 Kamil Dudka <kdudka at redhat.com> 2:1.22-2
 - improve tar-1.14-loneZeroWarning.patch (#487315)
 




More information about the fedora-extras-commits mailing list