From ff4fa73a6d84abfdd1b3c463e381ee47e512f418 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 5 Aug 2011 03:04:06 +0200 Subject: [PATCH] canonicalize-lgpl: Support larger filenames on the Hurd. * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192. Reported by Paul Eggert. --- ChangeLog | 4 ++++ lib/canonicalize-lgpl.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index adca1b28c..9b468dc7a 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 1574ec108..2755df912 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) -- 2.11.0