Skip to content

[6.0] Use fallback home directory on Windows #862

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

Conversation

jmschonfeld
Copy link
Contributor

Explanation: Restores Swift 5.10 behavior for getting a home directory for a non-existent user on Windows (using a reasonable default rather than asserting)
Scope: Only impacts looking up home directories for non-existent users on Windows and turns a crash into a successful return value
Original PR: #854
Risk: Minimal - scope is very small and it restores pre-recore behavior
Testing: Testing done via swift-ci testing and local testing
Reviewer: @compnerd @iCharlesHu

* Use %SystemDrive\Users\Public as fallback home directory on Windows

* Update to ALLUSERSPROFILE

* Fix test failure

* Fix iOS test failure
@jmschonfeld jmschonfeld requested a review from itingliu August 16, 2024 00:54
@jmschonfeld
Copy link
Contributor Author

@swift-ci please test

@jmschonfeld jmschonfeld merged commit d8d4511 into swiftlang:release/6.0 Aug 16, 2024
3 checks passed
@jmschonfeld jmschonfeld deleted the 6.0/windows/fallback-home-directory branch August 16, 2024 18:09
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