◐ Shell
reader mode source ↗
Skip to content

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

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

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

Conversation

@Aniketsy

@Aniketsy Aniketsy commented May 19, 2026

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 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

zipfile.extractall never restores stored Unix permissions

1 participant