]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-127146: Emscripten: Fix pathlib glob_dotdot test (GH-135624) (#135653)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 18 Jun 2025 04:19:43 +0000 (06:19 +0200)
committerGitHub <noreply@github.com>
Wed, 18 Jun 2025 04:19:43 +0000 (04:19 +0000)
commit9f63a54aec6fa9bc22382aa1a5a6e47ec12fca23
treeeba8d910a76903e656b463cb74ef7fc116c7763f
parenta61bd7af6e53fe5189c6c9a5a6f98bc0a74f68f3
[3.14] gh-127146: Emscripten: Fix pathlib glob_dotdot test (GH-135624) (#135653)

The Emscripten path resolver uses the same mechanism for resolving `..`
at a file system root as for resolving symlinks. This is because
roots don't store their mountpoints. If the parent of a node is itself,
it is a root but it might be a mountpoint in some other file system.

If a path has enough `..`'s at the root, it will return ELOOP.
Enough turns out to be 49.
(cherry picked from commit e4ccd46bf75fff2938d7c21c7284e49b0ab795b0)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
Lib/test/test_pathlib/test_pathlib.py