]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC 271048:
authorjhb <jhb@FreeBSD.org>
Mon, 8 Sep 2014 14:45:58 +0000 (14:45 +0000)
committerjhb <jhb@FreeBSD.org>
Mon, 8 Sep 2014 14:45:58 +0000 (14:45 +0000)
commitf227573925902e9f3ed1e3c641089576308e382e
treeb0f09d1a859f89855b21565bc7414c15e54f2e36
parent1b9496716d6c8b542db3304a742378cddb1b7c48
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)
lib/libc/gen/rewinddir.c