Skip to content

Base: add support for querying user home directory on Windows #4624

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

Merged
merged 1 commit into from
Aug 17, 2022

Conversation

compnerd
Copy link
Member

The user profile directory is not possible to access without the user
token for the GetUserProfileDirectoryW. Instead, we can iterate the
users matching a particular filter (e.g. local users). This allows us
to at least query some user home directory. Unfortunately, this would
disallow querying of users from a domain controller. This resolves an
immediate issue of SPM tests depending on the ability to query profile
information for a user.

@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

CC: @parkera

@compnerd
Copy link
Member Author

@swift-ci please test

The user profile directory is not possible to access without the user
token for the `GetUserProfileDirectoryW`.  Instead, we can iterate the
users matching a particular filter (e.g. local users).  This allows us
to at least query some user home directory.  Unfortunately, this would
disallow querying of users from a domain controller.  This resolves an
immediate issue of SPM tests depending on the ability to query profile
information for a user.
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd compnerd merged commit 62cc39c into swiftlang:main Aug 17, 2022
@compnerd compnerd deleted the user branch August 17, 2022 14:04
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