Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: segfault with exceedingly long path



On Fri, 17 Jan 2014 17:49:02 -0800
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Jan 18,  1:20am, Axel Beckert wrote:
> }
> } this is a forward of http://bugs.debian.org/418199
> 
> This is a known issue and unlikely ever to be fixed.  Various parts
> of the shell rely on system limits such as PATH_MAX which cannot be
> dynamically changed.  There's a comment with some explanation around
> lines 109-137 of Src/compat.c.
> 
> The upshot is that if you try hard enough you can always create a path
> that will exceed some limit or other.

I'm still in favour of reducing dependency on PATH_MAX wherever
possible, since any arbitrary limit we don't actually need we don't
actually want, but with 81 occurences in source and header files this
isn't a battle that's going to yield any instant gratification.

pws



Messages sorted by: Reverse Date, Date, Thread, Author