1
0
Fork 0
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:
Peter Stephenson 2009-11-03 10:00:34 +00:00
parent 65e45654b3
commit a92507d2b8
2 changed files with 8 additions and 1 deletions

View file

@ -691,6 +691,8 @@ xsymlinks(char *s)
zsfree(*pp);
if (!strcmp(xbuf, "/"))
continue;
if (!*xbuf)
continue;
p = xbuf + strlen(xbuf);
while (*--p != '/');
*p = '\0';