zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: zsh-workers@zsh.org
Subject: Re: segfault with exceedingly long path
Date: Mon, 24 Feb 2014 15:38:00 +0100	[thread overview]
Message-ID: <2708.1393252680@thecus.kiddle.eu> (raw)
In-Reply-To: <140119171049.ZM18371@torch.brasslantern.com>

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


  parent reply	other threads:[~2014-02-24 14:45 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-18  0:20 Axel Beckert
2014-01-18  1:49 ` Bart Schaefer
2014-01-18  9:11   ` Axel Beckert
2014-01-19 19:10   ` Peter Stephenson
2014-01-19 21:35     ` Bart Schaefer
2014-01-19 22:13       ` Simon Ruderich
2014-01-20  0:02         ` Bart Schaefer
2014-01-20  1:10           ` Bart Schaefer
2014-01-20  1:44             ` Bart Schaefer
2014-01-20  3:20             ` Bart Schaefer
2014-02-24 14:38             ` Oliver Kiddle [this message]
2014-02-24 15:38               ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2708.1393252680@thecus.kiddle.eu \
    --to=okiddle@yahoo.co.uk \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).