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

Re: segfault with exceedingly long path



On 19 Jan, Bart wrote:
> -    if (!*xbuf)
> +    if (!*xbuf) {
> +	zwarn("path expansion failed, using root directory");
>  	return ztrdup("/");

As a result of this, I now get:
zsh -fw
cd /
zsh: path expansion failed, using root directory

So if the directory starts as / the !*xbuf test succeeds and it prints
the warning. I'm not sure whether it would be better to skip the whole
xsymlinks call for a path of "/" or to check the return status from it.

Oliver



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