about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-03-24 12:14:19 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-03-24 12:14:19 +0000
commitee71aa006e412fa2e0532d58f5f028b9c3686a5e (patch)
tree2642faf3703075683de537656d4c57876b88a0c3
parent3e1e46e9d2aa8ce2889682894d3de8998f5bcee9 (diff)
downloadzsh-ee71aa006e412fa2e0532d58f5f028b9c3686a5e.tar.gz
zsh-ee71aa006e412fa2e0532d58f5f028b9c3686a5e.tar.xz
zsh-ee71aa006e412fa2e0532d58f5f028b9c3686a5e.zip
26769: fix finger trouble in 26767
-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);
     }