bpo-38822: Fixed os.stat failing on inaccessible directories. (GH-25527) · python/cpython@8e7cebb · GitHub
Skip to content

Commit 8e7cebb

Browse files
bpo-38822: Fixed os.stat failing on inaccessible directories. (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 <steve.dower@python.org>
1 parent 87a392d commit 8e7cebb

2 files changed

Lines changed: 24 additions & 2 deletions

File tree

Lines changed: 3 additions & 0 deletions

Modules/posixmodule.c

Lines changed: 21 additions & 2 deletions

0 commit comments

Comments
 (0)