bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PATH_MAX on the Hurd


From: Bruno Haible
Subject: Re: PATH_MAX on the Hurd
Date: Fri, 5 Aug 2011 03:05:15 +0200
User-agent: KMail/1.13.6 (Linux/2.6.37.6-0.5-desktop; KDE/4.6.0; x86_64; ; )

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  <address@hidden>

        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

[Prev in Thread] Current Thread [Next in Thread]