changeset 15497:f0519932c5eb

canonicalize-lgpl: Support larger filenames on the Hurd. * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192. Reported by Paul Eggert.
author Bruno Haible <bruno@clisp.org>
date Fri, 05 Aug 2011 03:04:06 +0200
parents 451ec8bd8a1c
children 7ed7c0ea6e5f
files ChangeLog lib/canonicalize-lgpl.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- a/lib/canonicalize-lgpl.c
+++ b/lib/canonicalize-lgpl.c
@@ -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)