Seekdir Bug

Matthew Dillon dillon at apollo.backplane.com
Fri May 2 10:01:13 PDT 2008


:There is a bug in all seekdir()/readdir() implementations in all BSDs:
:
:Under some circumstance, a seekdir() will no take you to the expected
:position, but one further.  This happens when the first entry in a
:block has been unlinked and you seekdir to the second.  In this case
:seekdir() overshoots by one entry.
:
:_readdir_unlocked() must not skip deleted entries when being called
:from _seekdir().
:
:A diff is attached.
:
:- Marc Balmer

    Thanks Marc, I will commit the patch right now.

						-Matt





More information about the Bugs mailing list