Repository navigation
fix: zip extract permission bits - #2102
Merged
Merged
Conversation
- SafeZipExtractor._extract_member now chmods each extracted file with the Unix mode stored in ZipInfo.external_attr (POSIX only, no-op when the archive carries no Unix attributes, e.g. Windows-authored zips). - stdlib zipfile never restores permission bits itself; a fix is tracked upstream at python/cpython#150061. - Fixes archives with more than one executable losing their exec bit after extraction, e.g. the bundled JBR inside the Kotlin Language Server distribution (jbr/bin/java and native libs), which previously only had its single top-level launcher script chmod'd by the language-server code. Fixes oraios#2100 Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Member
|
Thanks for your contribution. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes #2100
Checklist
CONTRIBUTING.mdregarding the scope of PRs.CHANGELOG.md, which concisely describes the change.