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