Skip to content

gh-149839: zipfile: restore Unix permissions after extraction#150061

Open
Aniketsy wants to merge 1 commit into
python:mainfrom
Aniketsy:fix-149839
Open

gh-149839: zipfile: restore Unix permissions after extraction#150061
Aniketsy wants to merge 1 commit into
python:mainfrom
Aniketsy:fix-149839

Conversation

@Aniketsy
Copy link
Copy Markdown
Contributor

@Aniketsy Aniketsy commented May 19, 2026

fixes #149839

  • When extracting a zip file, stored Unix permissions were ignored and files always got default permissions instead.
  • Fixed by applying the stored permissions with os.chmod after extraction.

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.

zipfile.extractall never restores stored Unix permissions

1 participant