]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] GH-87695: Fix OSError from `pathlib.Path.glob()` (GH-104292) (GH-104362)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 10 May 2023 23:19:49 +0000 (16:19 -0700)
committerGitHub <noreply@github.com>
Wed, 10 May 2023 23:19:49 +0000 (23:19 +0000)
commit846a23d0b8f08e62a90682c51ce01301eb923f2e
tree28d9d68c0f5cf1528faa197aecf35d38acc777ff
parent1cbf844875969da679f03ee4e9e27fff306fcf3d
[3.11] GH-87695: Fix OSError from `pathlib.Path.glob()` (GH-104292) (GH-104362)

Fix issue where `pathlib.Path.glob()` raised `OSError` when it encountered
a symlink to an overly long path.
(cherry picked from commit a33ce66dca57d4c36b1022fdf3b7e322f3203468)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
Lib/pathlib.py
Lib/test/test_pathlib.py
Misc/NEWS.d/next/Library/2023-05-08-15-39-00.gh-issue-87695.f6iO7v.rst [new file with mode: 0644]