From: Bruno Haible Date: Fri, 5 Aug 2011 01:04:06 +0000 (+0200) Subject: canonicalize-lgpl: Support larger filenames on the Hurd. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff4fa73a6d84abfdd1b3c463e381ee47e512f418;p=pspp canonicalize-lgpl: Support larger filenames on the Hurd. * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192. Reported by Paul Eggert. --- diff --git a/ChangeLog b/ChangeLog index adca1b28c9..9b468dc7a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2011-08-04 Bruno Haible + 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. diff --git a/lib/canonicalize-lgpl.c b/lib/canonicalize-lgpl.c index 1574ec108c..2755df9120 100644 --- a/lib/canonicalize-lgpl.c +++ b/lib/canonicalize-lgpl.c @@ -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)