about summary refs log tree commit diff
path: root/Src/utils.c
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2001-06-08 19:05:55 +0000
committerClint Adams <clint@users.sourceforge.net>2001-06-08 19:05:55 +0000
commitfd6be2db0fc77a157468306775a0f1de5f9645e7 (patch)
treed5d0f57cac07a0732450096ab3ff3092c37dc509 /Src/utils.c
parent975c0b44c56c7bf12f93a54f20bbfeff06fac7da (diff)
downloadzsh-fd6be2db0fc77a157468306775a0f1de5f9645e7.tar.gz
zsh-fd6be2db0fc77a157468306775a0f1de5f9645e7.tar.xz
zsh-fd6be2db0fc77a157468306775a0f1de5f9645e7.zip
14815: fix thinko
Diffstat (limited to 'Src/utils.c')
-rw-r--r--Src/utils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Src/utils.c b/Src/utils.c
index cd7685e6e..9ef3ec88c 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -3839,7 +3839,9 @@ zwcstat(char *filename, struct stat *buf, FuncDump dumps)
     if (stat(filename, buf)) {
 #ifdef HAVE_FSTAT
 	for (f = dumps; f; f = f->next) {
-	    if (!fstat(f->fd, buf)) return 0;
+	    if (!strncmp(filename, f->filename, strlen(f->filename)) &&
+		!fstat(f->fd, buf))
+		return 0;
 	}
 #endif
 	return 1;