Skip to content

gh-96867: Set zipapp execute bits from readable bits#151970

Open
yuanx749 wants to merge 5 commits into
python:mainfrom
yuanx749:zipapp
Open

gh-96867: Set zipapp execute bits from readable bits#151970
yuanx749 wants to merge 5 commits into
python:mainfrom
yuanx749:zipapp

Conversation

@yuanx749

Copy link
Copy Markdown
Contributor

Fixes gh-96867.

This PR sets execute bits to match readable bits when adding a shebang, preserving the permissions allowed by the user's umask. It also handles pathlib.Path targets when copying an existing archive.

Tests cover archives created with different umask settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

zipapp creates executable files with wrong permissions bits

1 participant