diff --git a/pax-3.0-PATHMAX.patch b/pax-3.0-PATHMAX.patch new file mode 100644 index 0000000..43aaa0b --- /dev/null +++ b/pax-3.0-PATHMAX.patch @@ -0,0 +1,21 @@ +--- pax-3.0/src/pax.h.MAXPATH 2001-12-15 14:52:52.000000000 +0100 ++++ pax-3.0/src/pax.h 2004-10-08 11:10:50.673000632 +0200 +@@ -41,6 +41,7 @@ + /* + * BSD PAX global data structures and constants. + */ ++#include + + #define MAXBLK 64512 /* MAX blocksize supported (posix SPEC) */ + /* WARNING: increasing MAXBLK past 32256 */ +@@ -50,8 +51,8 @@ + /* Don't even think of changing this */ + #define DEVBLK 8192 /* default read blksize for devices */ + #define FILEBLK 10240 /* default read blksize for files */ +-#define PAXPATHLEN 3072 /* maximium path length for pax. MUST be */ +- /* longer than the system MAXPATHLEN */ ++#define PAXPATHLEN PATH_MAX /* maximium path length for pax. MUST be */ ++ /* longer than the system MAXPATHLEN */ + + /* + * Pax modes of operation diff --git a/pax.spec b/pax.spec index 2fe4bbb..e3f191f 100644 --- a/pax.spec +++ b/pax.spec @@ -1,11 +1,12 @@ Summary: POSIX File System Archiver Name: pax Version: 3.0 -Release: 9 +Release: 10 License: BSD Group: Applications/Archiving Source: %{name}-%{version}.tar.bz2 Patch0: pax-3.0-doc.patch +Patch1: pax-3.0-PATHMAX.patch BuildRoot: %{_tmppath}/%{name}-root %description @@ -15,6 +16,7 @@ common forms of standard Unix archive (backup) files - CPIO and TAR. %prep %setup -q %patch0 -p1 -b .rh1 +%patch1 -p1 -b .PATHMAX %build %configure @@ -33,6 +35,9 @@ rm -rf %{buildroot} %doc %{_mandir}/man1/* %changelog +* Thu Oct 21 2004 Peter Vrabec +- fix PAXPATHLEN (#132857) + * Tue Jun 15 2004 Elliot Lee - rebuilt