about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--Src/utils.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index d0fa9a4cc..b5deadc77 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 $
 *****************************************************
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);
     }