canonicalize-lgpl: Support larger filenames on the Hurd.
authorBruno Haible <bruno@clisp.org>
Fri, 5 Aug 2011 01:04:06 +0000 (03:04 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 5 Aug 2011 01:04:06 +0000 (03:04 +0200)
* lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
Reported by Paul Eggert.

ChangeLog
lib/canonicalize-lgpl.c

index adca1b2..9b468dc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2011-08-04  Bruno Haible  <bruno@clisp.org>
 
+       canonicalize-lgpl: Support larger filenames on the Hurd.
+       * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
+       Reported by Paul Eggert.
+
        pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
        * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
        * lib/chdir-long.h: Include pathmax.h.
index 1574ec1..2755df9 100644 (file)
@@ -125,7 +125,7 @@ __realpath (const char *name, char *resolved)
 #else
   path_max = pathconf (name, _PC_PATH_MAX);
   if (path_max <= 0)
-    path_max = 1024;
+    path_max = 8192;
 #endif
 
   if (resolved == NULL)