should be fixed now. remove_lfn_entries() calls dir_read with the offset
== -1 which is not possible for normal directories (. and ..) but is
possible for root directories. So the 65535 check only needs to be applied
to non-root directories; the real limit for root directories is checked
somewhere further down the line.

Thanks! I'm going to test this now. I too just noticed the "fnp->f_diroff -= 2" subtraction in remove_lfn_entries() but was going to fix it, not dir_read(). Now I see that not only it but also lfn_dir_read() does "fnp->f_diroff -= 2" before calling dir_read(), so your fix it better. But please add lfn_dir_read() to the comment before the new check or generalise it if you like.


Lucho


------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Freedos-kernel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-kernel

Reply via email to