Mail Archives: djgpp-workers/2003/01/31/05:50:26.1
Hello.
Some uses of findfirst will eat LFN find handles. See
src/libc/posix/unistd/access.c for an example that doesn't.
Guilty files:
src/libc/compat/unistd/_irdlink.c
src/libc/compat/unistd/xsymlink.c
src/libc/posix/glob/glob.c
Possibly guilty files:
src/libc/posix/sys/stat/lstat.c
src/libc/compat/mntent/mntent.c
Currently we have snippets of code like this in access.c, to clean up:
/* Use _lfn_close_handle so we don't lose a handle. */
if (findfirst(fixed_path, &ff, FA_DIREC) == 0)
{
if (strcmp(ff.lfn_magic, "LFN32") == 0)
_lfn_find_close(ff.lfn_handle);
return 0;
}
- Raw text -