◐ Shell
clean mode source ↗

gh-59999:` zipfile:` restore Unix permissions after extraction by Aniketsy · Pull Request #150061 · python/cpython

Skip to content

Navigation Menu

Sign in

Appearance settings

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

Conversation

@Aniketsy

@Aniketsy Aniketsy commented

May 19, 2026

edited by bedevere-app Bot

Loading

Copy link Copy Markdown

Contributor

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.

@serhiy-storchaka serhiy-storchaka changed the title gh-149839: zipfile: restore Unix permissions after extraction gh-59999: zipfile: restore Unix permissions after extraction

May 19, 2026

@Aniketsy

Aniketsy commented

Jun 3, 2026

Copy link Copy Markdown

Contributor Author

As this pr is linked to quite old issue, i'm really excited and looking forward to fix. waiting for members to review and give suggestion for this if we need improvements. Thanks!

@Aniketsy

Copy link Copy Markdown

Contributor Author

@vstinner gentle ping, please have a look in this when you get chance . Thanks!

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

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

zipfile.extractall never restores stored Unix permissions

1 participant

@Aniketsy