Skip to content

bpo-39899: ntpath.expanduser(): don't check the basename of the directory matches the username if we're requesting the current user's home directory #25277

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

Conversation

barneygale
Copy link
Contributor

@barneygale barneygale commented Apr 8, 2021

Eryk Sun spotted that the implementation in #18841 shouldn't perform the basename check if we're querying for the current user's home directory via ~user.

https://bugs.python.org/issue39899

@barneygale barneygale changed the title ntpath.expanduser(): don't check the basename of the directory matches the username if we're requesting the current user's home directory bpo-39899: ntpath.expanduser(): don't check the basename of the directory matches the username if we're requesting the current user's home directory Apr 8, 2021
…s the username if we're requesting the current user's home directory
@barneygale
Copy link
Contributor Author

@zooba flagging for review, if you have a mo? This is a follow-up to #18841 that fixes a mistake. Thank you!

@zooba zooba added the skip news label Apr 9, 2021
@zooba zooba merged commit ba1db57 into python:master Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants