HomeFreeBSD

MFC 271048:

Description

MFC 271048:
Always seek back to the beginning of a regular directory, even if the
previous seek location was 0. Without this, readdir() would see
dd_loc of zero and call getdirentries() which would start reading
entries at the current seek location of the directory ignoring the
first batch of entries. Also, rewinddir() should always seek so that
it reads the directory from the beginning to get updated entries.

PR: 192935
Approved by: re (gjb)

Details

Provenance
jhbAuthored on
Parents
rS271262: Revert r271257 after several issues were pointed out. An updated patch
Branches
Unknown
Tags
Unknown

Event Timeline