X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fcanonicalize.c;h=4fe9f308af7e9ee54eef166ac16f2f8e5418d1f6;hb=b65bfcd7ba0be84de3d96f22103103f21679a721;hp=612a0d0fec007a291dccb8c6238ec15333de576b;hpb=f65232a174c15c6c10273185f11b190cae5736ad;p=gnulib.git diff --git a/lib/canonicalize.c b/lib/canonicalize.c index 612a0d0fe..4fe9f308a 100644 --- a/lib/canonicalize.c +++ b/lib/canonicalize.c @@ -1,5 +1,5 @@ /* Return the canonical absolute name of a given file. - Copyright (C) 1996-2009 Free Software Foundation, Inc. + Copyright (C) 1996-2011 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -31,6 +31,12 @@ #include "xalloc.h" #include "xgetcwd.h" +/* In this file, we cannot handle file names longer than PATH_MAX. + On systems with no file name length limit, use a fallback. */ +#ifndef PATH_MAX +# define PATH_MAX 8192 +#endif + #ifndef DOUBLE_SLASH_IS_DISTINCT_ROOT # define DOUBLE_SLASH_IS_DISTINCT_ROOT 0 #endif