ib / xarchiver

(continuation of the Xfce master branch)
GNU General Public License v2.0
171 stars 40 forks source link

Streamed archives do not work #191

Closed tp971 closed 8 months ago

tp971 commented 9 months ago

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..."

ib commented 8 months ago

Fixed.