ib / xarchiver

(continuation of the Xfce master branch)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Streamed archives do not work

tp971 opened this issue · comments

I don't know the exact details on how the zip format works, but I have an application that uses the fact that files can be streamed into a zip archive without knowing the file size in advance. This can be simulated with the following command:

$ echo test | zip test.zip -

This creates a file test.zip containing a file -:

$ unzip -lv test.zip -
Archive:  test.zip
 Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
--------  ------  ------- ---- ---------- ----- --------  ----
       5  Stored        5   0% 2024-03-05 01:01 3bb935c6  -
--------          -------  ---                            -------
       5                5   0%                            1 file

The archive can be extracted using unzip but not with xarchiver, i.e. it is stuck in "Opening archive, please wait..."

Fixed.