Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

os.path.realpath('loop/../link') does not resolve link #117546

Closed
Labels
3.12only security fixes3.13bugs and security fixesstdlibStandard Library Python modules in the Lib/ directory
@barneygale

Description

@barneygale

Ifos.path.realpath() encounters a symlink loop on posix, it prematurely stops querying paths and resolving symlink targets. This differs from coreutilsrealpath:

$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/link

It also differs from howlstat() errors are handled:

$ realpath -m missing/../link/tmp/target$ python -c'import os.path; print(os.path.realpath("missing/../link"))'/tmp/target

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.12only security fixes3.13bugs and security fixesstdlibStandard Library Python modules in the Lib/ directory

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp