1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 21:44:11 +01:00

14815: fix thinko

This commit is contained in:
Clint Adams 2001-06-08 19:05:55 +00:00
parent 975c0b44c5
commit fd6be2db0f
2 changed files with 6 additions and 1 deletions

@ -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.

@ -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;