]> 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:09:56 +0000 (13:09 -0700)
committerGitHub <noreply@github.com>
Thu, 22 Apr 2021 20:09:56 +0000 (13:09 -0700)
commit8e7cebb497e6004715a5475f6b53d8ef9d30a9fa
treed655d71da0d577b0fa7ee3e009f33f1d23776163
parent87a392db40d52cba18ffc67730856e11cb8cf945
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