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:
parent
975c0b44c5
commit
fd6be2db0f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user