mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-11 21:50:57 +01:00
Mikael: 27337: fix bug searching for / when
scanning symlinks in cd
This commit is contained in:
parent
65e45654b3
commit
a92507d2b8
2 changed files with 8 additions and 1 deletions
|
|
@ -691,6 +691,8 @@ xsymlinks(char *s)
|
|||
zsfree(*pp);
|
||||
if (!strcmp(xbuf, "/"))
|
||||
continue;
|
||||
if (!*xbuf)
|
||||
continue;
|
||||
p = xbuf + strlen(xbuf);
|
||||
while (*--p != '/');
|
||||
*p = '\0';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue