Skip to content

fix: zip extract permission bits - #2102

Merged
opcode81 merged 2 commits into
oraios:mainfrom
benkeil:fix/zip-extract-permission-bits
Sep 23, 2026
Merged

opcode81 merged 2 commits into
oraios:mainfrom
benkeil:fix/zip-extract-permission-bits

Conversation

@benkeil

@benkeil benkeil commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

fixes #2100

Checklist

  • This PR follows the guidelines in CONTRIBUTING.md regarding the scope of PRs.
  • For changes that add features or fix problems, I have added an entry to CHANGELOG.md, which concisely describes the change.
  • I have accepted (or will accept, when prompted by the CLA assistant bot) the Contributor License Agreement.

benkeil and others added 2 commits September 23, 2026 17:15
- 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]>
@CLAassistant

CLAassistant commented Sep 23, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@benkeil benkeil changed the title Fix/zip extract permission bits fix: zip extract permission bits Sep 23, 2026
@opcode81
opcode81 merged commit b83b655 into oraios:main Sep 23, 2026
24 of 25 checks passed
@opcode81

Copy link
Copy Markdown
Member

Thanks for your contribution.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Kotlin Language Server fails to start: extracted binaries (bundled JBR) lose executable permission bits

3 participants