Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: symlink chain.
- X-seq: zsh-workers 34091
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: "Zsh Hackers' List" <zsh-workers@xxxxxxx>
- Subject: Re: symlink chain.
- Date: Sun, 4 Jan 2015 18:51:09 +0000
- In-reply-to: <CACeGjnX9GbPZJ5rgbxNMq9f2da5fdX9kNLBiZ6JsQx=YdXEXgg@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <549E3A7B.9010209@eastlink.ca> <20150102170307.7d2e644a@ntlworld.com> <54A6E6B1.6070201@eastlink.ca> <20150102212422.3a761af5@ntlworld.com> <54A7136C.1060102@eastlink.ca> <20150102222140.1303a633@ntlworld.com> <54A72CEF.9090102@eastlink.ca> <54A740F3.4040902@eastlink.ca> <150102210337.ZM22099@torch.brasslantern.com> <54A783C3.3000006@eastlink.ca> <150102231734.ZM22168@torch.brasslantern.com> <54A82374.1030208@eastlink.ca> <150103120252.ZM23074@torch.brasslantern.com> <54A85B6C.4020103@eastlink.ca> <150103164002.ZM23676@torch.brasslantern.com> <54A8B4EE.30908@eastlink.ca> <150104003130.ZM24261@torch.brasslantern.com> <CACeGjnX9GbPZJ5rgbxNMq9f2da5fdX9kNLBiZ6JsQx=YdXEXgg@mail.gmail.com>
On Sun, 4 Jan 2015 13:04:20 -0500
Vin Shelton <acs@xxxxxxxxxxxxxxxxxxxx> wrote:
> "whence -s" no longer works in a way I would expect.
It doesn't work at all with chains of links owing to a typo when I add
-S...
diff --git a/Src/utils.c b/Src/utils.c
index 2b2a815..959df9a 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -795,12 +795,12 @@ xsymlinks(char *s, int full)
}
if (*xbuf3 == '/') {
strcpy(xbuf, "");
- if (xsymlinks(xbuf3 + 1, 0) < 0)
+ if (xsymlinks(xbuf3 + 1, 1) < 0)
ret = -1;
else
xbuflen = strlen(xbuf);
} else
- if (xsymlinks(xbuf3, 0) < 0)
+ if (xsymlinks(xbuf3, 1) < 0)
ret = -1;
else
xbuflen = strlen(xbuf);
--
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author