Project

General

Profile

Actions

Bug #999

closed

Seekdir Bug

Added by mbalmer almost 16 years ago. Updated over 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

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


Files

seekdir.diff (1.56 KB) seekdir.diff mbalmer, 05/02/2008 09:14 AM
Actions

Also available in: Atom PDF