Files
sabnzbd/tests/data/test_tar/testfile.tar
mnightingale dcfe8b076f Support extracting tar files (#3456)
* Support extracting tar files

* Set fail_msg when Python is too old

* Update error to "Unpacking failed, TAR support requires Python 3.12 or later", set per set/file, and don't regard as a failure if unsupported

* Update sabnzbd/newsunpack.py

Co-authored-by: Safihre <safihre@sabnzbd.org>

* Use UNWANTED_FILE_PERMISSIONS (stat.S_ISUID and stat.S_ISGID) are already removed by tar_filter but this is cleaner

* TAR extraction test including non-executable check

* ruff

* Skip executable check on Windows

* Remove helloworld.sh

* get_unique_filename

* Test path traversal, owner/group and permissions

* Fix duplicate file issues with one_folder

* Rename filter

---------

Co-authored-by: Safihre <safihre@sabnzbd.org>
2026-06-12 15:15:23 +02:00

110 KiB