On 3/17/2025 10:58 AM, tom ehlert via Freedos-devel wrote:
Hi Ralf,
al_findfirst() seems to be implemented by the GCC RTL. This might as well be a
bug in this implementation.
time for someone with a debugger at hand to look into this...
If this is using GCC (shudder) as its compiler, I am pretty sure that
this is the source of the problem. Pretty certain that GCC, being at
it's core a *ix compiler, is in this case assuming LFN being used (and
apparently, going by subsequent posts by Paul, a long file name being
found) is returning a file name that doesn't fit in the ffblk struc.
What is not obvious from the snippet posted is where this structure is
defined and thus unknown if this would be able to handle a longer than
8.3 file name. Specially the 16bit DOS port of gcc is like an unwanted
step child, so it is quite possible that there is no proper test for
this in the library code. Pretty certain that this won't be an issue
using a proper DOS compiler, being it Borland, DeSmet or OpenWatcom...
Ralf
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel