Skip to content

bpo-38822: Fixed os.stat failing on inaccessible directories with a trailing slash, rather than falling back to the parent directory's metadata #25527

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
Apr 22, 2021

Conversation

zooba
Copy link
Member

@zooba zooba commented Apr 22, 2021

…railing slash, rather than falling back to the parent directory's metadata.
@zooba zooba added type-bug An unexpected behavior, bug, or error OS-windows needs backport to 3.8 needs backport to 3.9 only security fixes labels Apr 22, 2021
@zooba zooba merged commit fe63a40 into python:master Apr 22, 2021
@miss-islington
Copy link
Contributor

Thanks @zooba for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-25530 is a backport of this pull request to the 3.9 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Apr 22, 2021
…GH-25527)

It would just fail if the path was inaccessible and had a trailing slash. It should fall back to the parent directory's metadata.
(cherry picked from commit fe63a40)

Co-authored-by: Steve Dower <[email protected]>
@bedevere-bot bedevere-bot removed the needs backport to 3.9 only security fixes label Apr 22, 2021
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Apr 22, 2021
…GH-25527)

It would just fail if the path was inaccessible and had a trailing slash. It should fall back to the parent directory's metadata.
(cherry picked from commit fe63a40)

Co-authored-by: Steve Dower <[email protected]>
@bedevere-bot
Copy link

GH-25531 is a backport of this pull request to the 3.8 branch.

@zooba zooba deleted the bpo-38822 branch April 22, 2021 19:46
miss-islington added a commit that referenced this pull request Apr 22, 2021
It would just fail if the path was inaccessible and had a trailing slash. It should fall back to the parent directory's metadata.
(cherry picked from commit fe63a40)

Co-authored-by: Steve Dower <[email protected]>
miss-islington added a commit that referenced this pull request Apr 22, 2021
It would just fail if the path was inaccessible and had a trailing slash. It should fall back to the parent directory's metadata.
(cherry picked from commit fe63a40)

Co-authored-by: Steve Dower <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS-windows type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants