]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38822: Fixed os.stat failing on inaccessible directories. (GH-25527)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 22 Apr 2021 20:07:02 +0000 (13:07 -0700)
committerGitHub <noreply@github.com>
Thu, 22 Apr 2021 20:07:02 +0000 (13:07 -0700)
commit400bd9a3858ea28ea264682b7f050c69638b1ff1
tree17491855a2a2261b066e74ce2ae1f34af5dfdd7f
parentef63328b46fe7402794cde51008a47e79f37b153
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 fe63a401a9b3ca1751b81b5d6ddb2beb7f3675c1)

Co-authored-by: Steve Dower <steve.dower@python.org>
Misc/NEWS.d/next/Windows/2021-04-22-19-49-20.bpo-38822.jgdPmq.rst [new file with mode: 0644]
Modules/posixmodule.c