From fd6be2db0fc77a157468306775a0f1de5f9645e7 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Fri, 8 Jun 2001 19:05:55 +0000 Subject: 14815: fix thinko --- ChangeLog | 3 +++ Src/utils.c | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0ead55a9a..10e04fcb6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2001-06-08 Clint Adams + * 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; -- cgit 1.4.1