X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fclean-temp.c;h=b05550a43032de5e7189436d918f10c33c58069e;hb=5eb934dfd78a8ff086ffef87f5d4ec18e2d45cf7;hp=93008151a862e3ca0fa4f7247e2595da9df7d3eb;hpb=b2e2010c7c902235b5efb5bd3c6529f61b093aa4;p=gnulib.git diff --git a/lib/clean-temp.c b/lib/clean-temp.c index 93008151a..b05550a43 100644 --- a/lib/clean-temp.c +++ b/lib/clean-temp.c @@ -1,5 +1,5 @@ /* Temporary directories and temporary files with automatic cleanup. - Copyright (C) 2001, 2003, 2006-2007, 2009-2010 Free Software Foundation, + Copyright (C) 2001, 2003, 2006-2007, 2009-2012 Free Software Foundation, Inc. Written by Bruno Haible , 2006. @@ -59,13 +59,10 @@ #define _(str) gettext (str) -/* GNU Hurd doesn't have PATH_MAX. */ +/* GNU Hurd doesn't have PATH_MAX. Use a fallback. + Temporary directory names are usually not that long. */ #ifndef PATH_MAX -# ifdef MAXPATHLEN -# define PATH_MAX MAXPATHLEN -# else -# define PATH_MAX 1024 -# endif +# define PATH_MAX 1024 #endif #ifndef uintptr_t