rpms/pax/devel pax-3.4-abs100.patch,NONE,1.1 pax.spec,1.17,1.18

Radek Brich (rbrich) fedora-extras-commits at redhat.com
Wed Jun 20 09:31:10 UTC 2007


Author: rbrich

Update of /cvs/extras/rpms/pax/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv19573

Modified Files:
	pax.spec 
Added Files:
	pax-3.4-abs100.patch 
Log Message:
add patch for #239000


pax-3.4-abs100.patch:

--- NEW FILE pax-3.4-abs100.patch ---
--- pax-3.4/src/tar.c.abs100	2005-08-01 18:17:58.000000000 +0200
+++ pax-3.4/src/tar.c	2007-06-20 10:44:54.000000000 +0200
@@ -1181,6 +1181,14 @@ name_split (name, len)
    * prefix we can find)
    */
   start = name + len - TNMSZ;
+  /* if filename is absolute and exactly TNMSZ in length,
+   * before we invoke the strict interpretation of /str below, we
+   * check to see if there is another slash further along which
+   * would allow a safe split. if this search fails then we hit
+   * the end of the string and fail in a similar manner
+   */
+  if((start == name) && (*start == '/'))
+    ++start;
   while ((*start != '\0') && (*start != '/'))
     ++start;
 


Index: pax.spec
===================================================================
RCS file: /cvs/extras/rpms/pax/devel/pax.spec,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- pax.spec	12 Jul 2006 07:40:45 -0000	1.17
+++ pax.spec	20 Jun 2007 09:30:31 -0000	1.18
@@ -1,13 +1,14 @@
 Summary: POSIX File System Archiver
 Name: pax
 Version: 3.4
-Release: 1.2.2
+Release: 2
 License: BSD
 Group: Applications/Archiving
 Source: ftp://ftp.suse.com/pub/people/kukuk/pax/%{name}-%{version}.tar.bz2
 URL:    ftp://ftp.suse.com/pub/people/kukuk/pax/
 Source: %{name}-%{version}.tar.bz2
 Patch0: pax-3.0-PATHMAX.patch 
+Patch1: pax-3.4-abs100.patch 
 BuildRoot: %{_tmppath}/%{name}-root
 
 %description
@@ -17,6 +18,7 @@
 %prep
 %setup -q
 %patch0 -p1 -b .PATHMAX
+%patch1 -p1 -b .abs100
 
 %build
 %configure
@@ -35,6 +37,10 @@
 %doc %{_mandir}/man1/*
 
 %changelog
+* Wed Jun 20 2007 Radek Brich <rbrich at redhat.com> - 3.4-2
+- applied patch for #239000 (pax fails creation of ustar
+  if an absolute name is exactly 100 characters long)
+
 * Wed Jul 12 2006 Jesse Keating <jkeating at redhat.com> - 3.4-1.2.2
 - rebuild
 




More information about the fedora-extras-commits mailing list