-
Notifications
You must be signed in to change notification settings - Fork 680
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
Users
and Group
iterators (re-entrant)
Other functions still need to be edited to use the re-entrant versions, however while working on this I found a problem (actually, @asomers mentioned it first, but I did not realize its severity until I coded it myself -- I learned the hard way..) Tests will only pass if you do run `cargo test` with the `--test-threads=1` option. I have no idea what to do about this, because it seems like no modern systems include `setpwent_r` or `endpwent_r`...only `getpwent_r` (same for groups). After we work out how we want to deal with this (perhaps exempting some functions from the tests, or adding the flag), I will fix the other functions, e.g. `getpwnam`, to use the re-entrant versions. However, I'm concerned that this problem will cause all my hard work to be wasted :-( So I will wait until we get a consensus around these iterators before continuing to fix the other functions.
- Loading branch information
1 parent
4e0de01
commit 3612526
Showing
3 changed files
with
120 additions
and
60 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
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