GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — `os.path.realpath()` on Windows misresolves a broken symlink reached through a directory symlink · Issue #160506 · python/cpython Closed Labels OS-windowsstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-securityA security issueA security issue DescriptionBug reportBug description:On Windows,
# Windows, with permission to create symlinks import os os.makedirs(r"C:\work\out") os.symlink(".", r"C:\work\out\alias", target_is_directory=True) os.symlink(r"..\outside\new.txt", r"C:\work\out\link") print(os.path.realpath(r"C:\work\out\link")) print(os.path.realpath(r"C:\work\out\alias\link")) Both names are the same link, so both lines should be An archive with the members I have not run this on Windows. The output above comes from running the Windows branch of CPython versions tested on:CPython main branch Operating systems tested on:Other Linked PRs
Activity
MetadataMetadataAssigneesLabelsOS-windowsstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-securityA security issueA security issue ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |