Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[3.14] gh-127146: Emscripten: Fix pathlib glob_dotdot test (GH-135624) #135653

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 18, 2025

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jun 18, 2025

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 e4ccd46)

Co-authored-by: Hood Chatham [email protected]

…35624)

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 e4ccd46)

Co-authored-by: Hood Chatham <[email protected]>
@freakboy3742 freakboy3742 enabled auto-merge (squash) June 18, 2025 03:21
@freakboy3742 freakboy3742 merged commit 9f63a54 into python:3.14 Jun 18, 2025
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants