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

Re: 'cd' built-in crashed zsh on a broken file system



On Jan 20,  1:35pm, Kamil Dudka wrote:
} Subject: 'cd' built-in crashed zsh on a broken file system
}
} It is not clear to me why pwd was NULL after the return from cd_new_pwd()

xsymlink() in utils.c:

    if (*s != '/')
	return NULL;

called from findpwd() also utils.c, which in turn is only called if you
have CHASE_LINKS set.

I'm not sure if the right thing to do is test the return of xsymlink()
down in findpwd(), or to check the return of findpwd() in cd_new_pwd().



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