Skip to content

[3.11] gh-160506: Fix ntpath.realpath() for broken links via directory links (GH-160507) - #161030

Open
miss-islington wants to merge 1 commit into
python:3.11from
miss-islington:backport-65665a4-3.11
Open

miss-islington wants to merge 1 commit into
python:3.11from
miss-islington:backport-65665a4-3.11

Conversation

@miss-islington

@miss-islington miss-islington commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Resolve the directory containing a broken relative symlink before
joining the link target to it, so that '..' in the target is applied
to the real directory.

ANT-2026-27II3A20
(cherry picked from commit 65665a4)

Co-authored-by: Gregory P. Smith 68491+gpshead@users.noreply.github.com

… links (pythonGH-160507)

Resolve the directory containing a broken relative symlink before
joining the link target to it, so that '..' in the target is applied
to the real directory.

ANT-2026-27II3A20
(cherry picked from commit 65665a4)

Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants