summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Src/utils.c4
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0ead55a9a..10e04fcb6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2001-06-08  Clint Adams  <clint@zsh.org>
 
+	* 14815: Src/utils.c: actually check the filename of
+	the dump.
+
 	* 14813: zshconfig.ac, Src/parse.c, Src/utils.c, Src/zsh.h:
 	try to autoload functions from digest files that are deleted
 	but still open.
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;