diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2009-03-24 12:14:19 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2009-03-24 12:14:19 +0000 |
commit | ee71aa006e412fa2e0532d58f5f028b9c3686a5e (patch) | |
tree | 2642faf3703075683de537656d4c57876b88a0c3 /Src/utils.c | |
parent | 3e1e46e9d2aa8ce2889682894d3de8998f5bcee9 (diff) | |
download | zsh-ee71aa006e412fa2e0532d58f5f028b9c3686a5e.tar.gz zsh-ee71aa006e412fa2e0532d58f5f028b9c3686a5e.tar.xz zsh-ee71aa006e412fa2e0532d58f5f028b9c3686a5e.zip |
26769: fix finger trouble in 26767
Diffstat (limited to 'Src/utils.c')
-rw-r--r-- | Src/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/utils.c b/Src/utils.c index b673c4739..969f2cf09 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -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); } |