Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[6.0.x] Fetching user/group info causes race conditions (#994) #998

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

jmschonfeld
Copy link
Contributor

Explanation: Replaces uses of thread-unsafe user/group lookup functions with thread-safe versions
Scope: Impacts APIs that lookup user/group info (FileManager/ProcessInfo)
Original PR: #994
Risk: Low - behavior is well tested by unit tests
Testing: Testing done via swift-ci testing and local testing
Reviewer: @parkera

* Avoid racy stdlib functions for fetching user/group info

* Refactor naming

* Fix build failure
@jmschonfeld jmschonfeld requested a review from parkera October 23, 2024 16:21
@jmschonfeld
Copy link
Contributor Author

@swift-ci please test

@jmschonfeld jmschonfeld merged commit 0c90c25 into swiftlang:release/6.0 Oct 23, 2024
3 checks passed
@jmschonfeld jmschonfeld deleted the 6.0/user-group-races branch October 23, 2024 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants