On Wed, Aug 3, 2011 at 10:30 PM, Pino Toscano <p...@debian.org> wrote: > > Actually, it seems that MAXPATHLEN is what you describe; see in > erts/emulator/sys/unix/erl_unix_sys.h: > > /* > * Make sure that MAXPATHLEN is defined. > */ > [...] > #ifndef MAXPATHLEN > # ifdef PATH_MAX > # define MAXPATHLEN PATH_MAX > # else > # define MAXPATHLEN 2048 > # endif > #endif
I see. > > There's also a bit of duplication of this code defining MAXPATHLEN (and > all of them in different ways, even), see: > - lib/runtime_tools/c_src/trace_file_drv.c > - lib/erl_interface/src/prog/erl_start.c > - lib/erl_interface/src/misc/ei_internal.h > > I guess there's the need for some uniformity... True, but I don't think that we as maintainers should provide this uniformity. The less intrusive our patches the better. Though you may send your patch which uses MAXPATHLEN instead of PATH_MAX directly to the upstream. Cheers! -- Sergei Golovan -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org