Skip to content

Commit

Permalink
Increase the fallback value of MAXPATHLEN
Browse files Browse the repository at this point in the history
On systems without MAXPATHLEN or PATH_MAX defined (GNU/Hurd is an example
of such a system), set MAXPATHLEN to 4096 rather than 1024; this increase
creates parity with Linux.
  • Loading branch information
jmdh authored and Father Chrysostomos committed Jan 30, 2012
1 parent 307764a commit ffa23ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/File-Glob/bsd_glob.c
Expand Up @@ -83,7 +83,7 @@ static char sscsid[]= "$OpenBSD: glob.c,v 1.8.10.1 2001/04/10 jason Exp $";
# ifdef PATH_MAX
# define MAXPATHLEN PATH_MAX
# else
# define MAXPATHLEN 1024
# define MAXPATHLEN 4096
# endif
#endif

Expand Down

0 comments on commit ffa23ac

Please sign in to comment.