1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-16 12:21:18 +02:00

26769: fix finger trouble in 26767

This commit is contained in:
Peter Stephenson 2009-03-24 12:14:19 +00:00
parent 3e1e46e9d2
commit ee71aa006e
2 changed files with 4 additions and 2 deletions

View file

@ -1,5 +1,7 @@
2009-03-23 Peter Stephenson <pws@csr.com>
* 26769: Src/utils.c: 26767 created an even worse problem.
* 26748: Doc/Zsh/expn.yo, Src/hist.c, Src/subst.c: c modifier
to add command path.
@ -11472,5 +11474,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.4632 $
* $Revision: 1.4633 $
*****************************************************

View file

@ -5423,7 +5423,7 @@ lchdir(char const *path, struct dirsav *d, int hard)
#ifdef HAVE_FCHDIR
if (d->dirfd < 0) {
close_dir = 1;
if ((d->dirfd = open(".", O_RDONLY | O_NOCTTY) < 0) &&
if ((d->dirfd = open(".", O_RDONLY | O_NOCTTY)) < 0 &&
zgetdir(d) && *d->dirname != '/')
d->dirfd = open("..", O_RDONLY | O_NOCTTY);
}