Skip to content

🐛 fix(zipapp): resolve archive path symlinks - #3599

Merged
gaborbernat merged 2 commits into
pypa:mainfrom
gaborbernat:fix/resolve-zipapp-path
Nov 19, 2026
Merged

gaborbernat merged 2 commits into
pypa:mainfrom
gaborbernat:fix/resolve-zipapp-path

Conversation

@gaborbernat

Copy link
Copy Markdown
Contributor

The zipapp can fail to open its own archive when a launcher reaches it through a directory symlink followed by a parent component. The bootstrap resolves the filesystem path before reopening the archive. The original archive is then available even when a parent component follows a directory symlink.

Report ANT-2026-WY9FGLQ6.

Fixes #3596.

@gaborbernat
gaborbernat merged commit 627c234 into pypa:main Nov 19, 2026
81 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Zipapp cannot reopen its archive through a symlink and parent component

1 participant