mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-11 03:13:51 +00:00
* Restore Unix executable bits when extracting zip archives - 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 https://github.com/python/cpython/pull/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/serena#2100 --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>