Blame SOURCES/pax-3.0-PATHMAX.patch

f9b685
--- pax-3.0/src/pax.h.MAXPATH	2001-12-15 14:52:52.000000000 +0100
f9b685
+++ pax-3.0/src/pax.h	2004-10-08 11:10:50.673000632 +0200
f9b685
@@ -41,6 +41,7 @@
f9b685
 /*
f9b685
  * BSD PAX global data structures and constants.
f9b685
  */
f9b685
+#include <limits.h>
f9b685
 
f9b685
 #define	MAXBLK		64512	/* MAX blocksize supported (posix SPEC) */
f9b685
 				/* WARNING: increasing MAXBLK past 32256 */
f9b685
@@ -50,8 +51,8 @@
f9b685
 				/* Don't even think of changing this */
f9b685
 #define DEVBLK		8192	/* default read blksize for devices */
f9b685
 #define FILEBLK		10240	/* default read blksize for files */
f9b685
-#define PAXPATHLEN	3072	/* maximium path length for pax. MUST be */
f9b685
-				/* longer than the system MAXPATHLEN */
f9b685
+#define PAXPATHLEN	PATH_MAX	/* maximium path length for pax. MUST be */
f9b685
+					/* longer than the system MAXPATHLEN */
f9b685
 
f9b685
 /*
f9b685
  * Pax modes of operation