The error is set in this piece of code (external\minizip\unzip.c): extern int ZEXPORT unzOpenCurrentFile3 (unzFile file, int* method, int* level, int raw, const char* password) { int err; uInt iSizeVar; unz64_s* s; file_in_zip64_read_info_s* pfile_in_zip_read_info; ZPOS64_T offset_local_extrafield; /* offset of the local extra field */ uInt size_local_extrafield; /* size of the local extra field */ # ifndef NOUNCRYPT char source[12]; # else if (password != NULL) return UNZ_PARAMERROR; # endif
if (file==NULL) return UNZ_PARAMERROR; s=(unz64_s*)file; if (!s->current_file_ok) return UNZ_PARAMERROR; The tests of correctness of file would be ininfluent, as the error is set only when the password is supplied. This seems to set the error any time a not empty password is supplied, if NOUNCRYPT is defined. But NOUNCRYPT would'nt be defined, so the thing would work as expected. Maybe the NOUNCRYPY is unexpectedly set? Just my thought. I'll try to set some tracepoint. Best regards. Maurizio la Cecilia > -----Messaggio originale----- > Da: harbour-boun...@harbour-project.org > [mailto:harbour-boun...@harbour-project.org] Per conto di > Viktor Szakáts > Inviato: lunedì 26 aprile 2010 16.42 > A: Harbour Project Main Developer List. > Oggetto: Re: [Harbour] Error unZipping a crypted archive > > Looks like the password is ignored when doing the compression. > > Viktor > > On 2010 Apr 26, at 14:53, Grigory Filatov wrote: > > > > > Hello Maurizio, > > > > I confirm this problem with sample > harbour\contrib\hbmzip\tests\myunzip.prg > > also. > > > > myunzip myzip.zip --pass mypass > > > > Can somebody take a look for this issue? > > > > -- > > Regards, > > Grigory Filatov > > > > > > Maurizio la Cecilia wrote: > >> > >> If I try to unZip a crypted zipped archive, a -102 ( > UNZ_PARAMERROR ) is > >> returned. > >> I use hbmzip lib ( and obviously minizip lib, as I use > last SVN version ). > >> > >> I believe to pass the right parameters. What's wrong? > >> Below a self contained example. > >> Just strip out the password parameter and all works fine. > >> TIA. > >> Maurizio > >> > >> > > > > -- > > View this message in context: > http://old.nabble.com/Error-unZipping-a-crypted-archive-tp2836 > 4005p28364199.html > > Sent from the Harbour - Dev mailing list archive at Nabble.com. > > > > _______________________________________________ > > Harbour mailing list (attachment size limit: 40KB) > > Harbour@harbour-project.org > > http://lists.harbour-project.org/mailman/listinfo/harbour > > _______________________________________________ > Harbour mailing list (attachment size limit: 40KB) > Harbour@harbour-project.org > http://lists.harbour-project.org/mailman/listinfo/harbour > _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour