Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
Closed
Labels
3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
Description
If os.path.realpath() encounters a symlink loop on posix, it prematurely stops querying paths and resolving symlink targets. This differs from coreutils realpath:
$ cd /tmp $ ln -s loop loop $ ln -s target link $ realpath -m loop/../link /tmp/target $ python -c 'import os.path; print(os.path.realpath("loop/../link"))' /tmp/linkIt also differs from how lstat() errors are handled:
$ realpath -m missing/../link /tmp/target $ python -c 'import os.path; print(os.path.realpath("missing/../link"))' /tmp/targetLinked PRs
Metadata
Metadata
Assignees
Labels
3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory