Paul Eggert wrote:
> One nit: the pathmax.h comment suggests a fallback of 8192,
> but the code uses 1024; I suggest making them consistent.

Yup. I think this patch makes it more consistent:


2011-08-04  Bruno Haible  <[email protected]>

        canonicalize-lgpl: Support larger filenames on the Hurd.
        * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
        Reported by Paul Eggert.

--- lib/canonicalize-lgpl.c.orig        Fri Aug  5 03:02:25 2011
+++ lib/canonicalize-lgpl.c     Thu Aug  4 12:30:12 2011
@@ -125,7 +125,7 @@
 #else
   path_max = pathconf (name, _PC_PATH_MAX);
   if (path_max <= 0)
-    path_max = 1024;
+    path_max = 8192;
 #endif
 
   if (resolved == NULL)

Reply via email to