rpms/pax/devel pax-3.4-rdtruncate.patch, NONE, 1.1 pax.spec, 1.18, 1.19

Radek Brich (rbrich) fedora-extras-commits at redhat.com
Mon Jul 16 08:58:53 UTC 2007


Author: rbrich

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

Modified Files:
	pax.spec 
Added Files:
	pax-3.4-rdtruncate.patch 
Log Message:
#205324

pax-3.4-rdtruncate.patch:

--- NEW FILE pax-3.4-rdtruncate.patch ---
--- pax-3.4/src/tar.c.rdtruncate	2007-07-13 15:33:05.000000000 +0200
+++ pax-3.4/src/tar.c	2007-07-13 15:34:23.000000000 +0200
@@ -821,7 +821,7 @@ ustar_rd (ARCHD *arcn, char *buf)
   if (gnu_hack_string)
     {
       arcn->nlen = cnt + strlcpy (dest, gnu_hack_string,
-				  MIN(TNMSZ+1, sizeof (arcn->name) - cnt));
+				  sizeof (arcn->name) - cnt);
       free(gnu_hack_string);
       gnu_hack_string = NULL;
     } else


Index: pax.spec
===================================================================
RCS file: /cvs/extras/rpms/pax/devel/pax.spec,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- pax.spec	20 Jun 2007 09:30:31 -0000	1.18
+++ pax.spec	16 Jul 2007 08:58:21 -0000	1.19
@@ -1,7 +1,7 @@
 Summary: POSIX File System Archiver
 Name: pax
 Version: 3.4
-Release: 2
+Release: 3%{?dist}
 License: BSD
 Group: Applications/Archiving
 Source: ftp://ftp.suse.com/pub/people/kukuk/pax/%{name}-%{version}.tar.bz2
@@ -9,6 +9,7 @@
 Source: %{name}-%{version}.tar.bz2
 Patch0: pax-3.0-PATHMAX.patch 
 Patch1: pax-3.4-abs100.patch 
+Patch2: pax-3.4-rdtruncate.patch
 BuildRoot: %{_tmppath}/%{name}-root
 
 %description
@@ -19,6 +20,7 @@
 %setup -q
 %patch0 -p1 -b .PATHMAX
 %patch1 -p1 -b .abs100
+%patch2 -p1 -b .rdtruncate
 
 %build
 %configure
@@ -37,6 +39,9 @@
 %doc %{_mandir}/man1/*
 
 %changelog
+* Mon Jul 16 2007 Radek Brich <rbrich at redhat.com> - 3.4-3
+- do not truncate file names when extracting (#205324)
+
 * 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)




More information about the scm-commits mailing list