Skip to content

GH-117546: Fix symlink resolution in os.path.realpath('loop/../link') - #117568

Merged
barneygale merged 1 commit into
python:mainfrom
barneygale:gh-117546
Apr 10, 2024
Merged

barneygale merged 1 commit into
python:mainfrom
barneygale:gh-117546

Conversation

@barneygale

@barneygale barneygale commented Apr 5, 2024 •

Copy link
Copy Markdown
Contributor

Continue resolving symlink targets after encountering a symlink loop, which matches coreutils realpath behaviour. POSIX-only fix; Windows works differently.


📚 Documentation preview 📚: https://cpython-previews--117568.org.readthedocs.build/

…/link')`

Continue resolving symlink targets after encountering a symlink loop, which
matches coreutils `realpath` behaviour.

@serhiy-storchaka serhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

#117562 includes a similar change.

@barneygale

Copy link
Copy Markdown
Contributor Author

Thank you for the review

@barneygale
barneygale merged commit 630df37 into python:main Apr 10, 2024
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
…/link')` (python#117568)

Continue resolving symlink targets after encountering a symlink loop, which
matches coreutils `realpath` behaviour.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants