-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libnss_tcb: Initialize or rewind dirstream from inside setspent(3).
On first call to setspent(3) initialize the directory stream properly; on subsequent calls use rewinddir(3) to reset the position of the directory stream to the beginning of the directory, and also update the existing directory stream to refer to the current state of the underlying directory it operates on. As all internal functions are operating on thread-local storage now, this operation will be safe, since it will emit no effects outside of the thread calling the setspent(3) function itself. Signed-off-by: Björn Esser <[email protected]>
- Loading branch information
Showing
2 changed files
with
22 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters