[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#645552: perl: MAXPATHLEN set too small

Package: perl
Version: 25.14.2-6
Severity: important
Tags: patch
User: debian-hurd@lists.debian.org
Usertags: hurd

In perl-5.14.2/ext/File-Glob/bsd_glob.c the following definitions are
#  ifdef PATH_MAX
#    define     MAXPATHLEN      PATH_MAX
#  else
#    define     MAXPATHLEN      1024
#  endif

Since neither MAXPATHLEN nor PATH_MAX are defined for GNU/Hurd the
default value 1024 is used. This value is far too small, and it hurts
when building evolution, see bug #645552, resulting in a build failure.

Can you please change the default from 1024 to 4096 to be on par with
the constants used by other OSes, like Linux and kFreeBSD. The best
solution however, would be if upstream changed to use dynamic allocation
of strings in bsd_Glob.c instead of fixed-length string arrays. That
will probably happen when a glob pattern exceeds 4096 bytes, if not


Reply to: