diff options
author | Clint Adams <clint@users.sourceforge.net> | 2001-06-08 19:05:55 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2001-06-08 19:05:55 +0000 |
commit | fd6be2db0fc77a157468306775a0f1de5f9645e7 (patch) | |
tree | d5d0f57cac07a0732450096ab3ff3092c37dc509 | |
parent | 975c0b44c56c7bf12f93a54f20bbfeff06fac7da (diff) | |
download | zsh-fd6be2db0fc77a157468306775a0f1de5f9645e7.tar.gz zsh-fd6be2db0fc77a157468306775a0f1de5f9645e7.tar.xz zsh-fd6be2db0fc77a157468306775a0f1de5f9645e7.zip |
14815: fix thinko
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Src/utils.c | 4 |
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; |