This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

1.5.1: unzip problems with binary files in archive


I'm getting a strange error from unzip when trying to extract an
archive that contains binary files.  Everything works fine if the
archive contains just text files.

This problem occurs with the 1.5.1 DLL and the latest test packages
for zip and unzip.  Everything works fine with 1.3.22.  It also
works okay with 1.5.1 and the Curr versions of zip/unzip.

Simply recompiling the zip/unzip packages against the 1.5.1 DLL did
not fix the problem.

Here's what I did:

----------------------------------------------------------------------
$ cp /bin/ls.exe .
$ zip tst.zip ls.exe
  adding: ls.exe (deflated 53%)
$ rm ls.exe
$ unzip tst.zip
Archive:  tst.zip
error [tst.zip]:  missing 48821 bytes in zipfile
  (attempting to process anyway)
error [tst.zip]:  attempt to seek before beginning of zipfile
  (please check that you have transferred or created the zipfile in the
  appropriate BINARY mode and that you have compiled UnZip properly)

$ rm tst.zip
$ date > text.txt
$ zip tst.zip text.txt
$ rm text.txt
$ unzip tst.zip
Archive:  tst.zip
 extracting: text.txt
----------------------------------------------------------------------

Dave

Attachment: cygcheck.out
Description: cygcheck -svr

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]