home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 9 Archive
/
09-Archive.zip
/
UnzpHist.zip
/
History.302
< prev
next >
Wrap
Text File
|
1990-05-19
|
3KB
|
72 lines
****************************************
- v3.02 continued
Date: Tue, 15 May 90 22:19:39 MDT
From: imp@Solbourne.COM (Warner Losh)
To: info-zip@wsmr-simtel20.army.mil
Subject: Patch for .exe problem.
Here is a patch for the problem that was reported about not being able
to extract a zip file named foo.exe. I don't know of any problems
with this patch. It should work on any system that knows about the
stat command. If you suspect this patch is causing you problems, then
just add -DREALOLDSTUFF to your CFLAGS line in the Makefile and it
will compile the old way.
Warner Losh imp@Solbourne.COM
[Applied via patch to v3.02. Actual patch is in patchexe.pch file.
Since v3.02 hasn't REALLY been fielded yet,
no change to version number.
This patch, with its use of the stat() function, didn't want to work on
my BSD 4.3 system (problems with stat() always returning a -1, not being
able to define a struct stat variable, etc.).
Replaced the "file-existence" testing with the access() function
and it worked just fine! You can now direct unzip to any target file at all.
unzip will check for that file's existence, and if not found, will add a
".zip" and try again. That oughtta take care of LEVELS.ZIP, selfextr.exe,
and so forth.
My system is now working perfectly, using various combinations of the
-a and -m switch. No CRC errors, file end-of-line conversion is working
well, etc.
19 May 90
David Kirschbaum
Toad Hall
]
***********************************************
-v 3.02
Date: Wed, 9 May 90 11:27:39 MDT
To: info-zip@wsmr-simtel20.army.mil
Subject: Patch for the -a CRC problem.
From: imp@Solbourne.COM (Warner Losh)
Greetings...
since it looks like David is going away for a while, here are the
context diffs to 3.0 to make it quit bitching about CRC problems when
it unpacks incorrectly. I didn't patch the existing code. I rewrote
it so that all writes go though FlushBuffer which calls WriteBuffer
which might call dos2unix to map <CR><LF> to just <LF>. Note: I
think I broke EBCDIC in the process. Lemme know what you think of
these patches. They worked for me a dozen times on this sun4 I have.
I'd be interested in knowing where else they work.
Oh yah, if the last character of the buffer is <CR>, then weird things
will happen (more than likely it will do nothing). There is a bug
that in what I sent to David that causes a buffer overflow (dos2unix
looks at too many character) in reading (but not in writing. The one
line fix is to add i++ where you see it in this context diff.
Warner Losh
imp@Solbourne.COM
[Applied to v3.01, producing v3.02.
Patch itself is in the file losh.pat
David Kirschbaum
Toad Hall
]