]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-117546: Fix symlink resolution in `os.path.realpath('loop/../link')` (#117568)
authorBarney Gale <barney.gale@gmail.com>
Wed, 10 Apr 2024 17:17:18 +0000 (18:17 +0100)
committerGitHub <noreply@github.com>
Wed, 10 Apr 2024 17:17:18 +0000 (18:17 +0100)
commit630df37116b1c5b381984c547ef9d23792ceb464
tree35a80caf614d9ee2d9b2076004ecc2c996b459e1
parent6bc0b33a91713ee62fd1860d28b19cb620c45971
GH-117546: Fix symlink resolution in `os.path.realpath('loop/../link')` (#117568)

Continue resolving symlink targets after encountering a symlink loop, which
matches coreutils `realpath` behaviour.
Doc/library/os.path.rst
Lib/posixpath.py
Lib/test/test_posixpath.py
Misc/NEWS.d/next/Library/2024-04-05-13-38-53.gh-issue-117546.lWjhHE.rst [new file with mode: 0644]