README 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  1. This is the README file for the 20 April 2009 public release of the
  2. Info-ZIP group's portable UnZip zipfile-extraction program (and related
  3. utilities).
  4. unzip60.zip portable UnZip, version 6.0, source code distribution
  5. unzip60.tar.Z same as above, but compress'd tar format
  6. unzip60.tar.gz same as above, but gzip'd tar format
  7. __________________________________________________________________________
  8. BEFORE YOU ASK: UnZip, its companion utility Zip, and related utilities
  9. and support files can be found in many places; read the file "WHERE" for
  10. further details. To contact the authors with suggestions, bug reports,
  11. or fixes, continue reading this file (README) and, if this is part of a
  12. source distribution, the file "ZipPorts" in the proginfo directory. Also
  13. in source distributions: read "BUGS" for a list of known bugs, non-bugs
  14. and possible future bugs; INSTALL for instructions on how to build UnZip;
  15. and "Contents" for a commented listing of all the distributed files.
  16. __________________________________________________________________________
  17. GENERAL INFO
  18. ------------
  19. UnZip is an extraction utility for archives compressed in .zip format (also
  20. called "zipfiles"). Although highly compatible both with PKWARE's PKZIP
  21. and PKUNZIP utilities for MS-DOS and with Info-ZIP's own Zip program, our
  22. primary objectives have been portability and non-MSDOS functionality.
  23. This version of UnZip has been ported to a stupendous array of hardware--
  24. from micros to supercomputers--and operating systems: Unix (many flavors),
  25. VMS, OS/2 (including DLL version), Windows NT and Windows 95 (including DLL
  26. version), Windows CE (GUI version), Windows 3.x (including DLL version),
  27. MS-DOS, AmigaDOS, Atari TOS, Acorn RISC OS, BeOS, Macintosh (GUI version),
  28. SMS/QDOS, MVS, VM/CMS, FlexOS, Tandem NSK, Human68k (mostly), AOS/VS (partly)
  29. and TOPS-20 (partly). UnZip features not found in PKUNZIP include source
  30. code; default extraction of directory trees (with a switch to defeat this,
  31. rather than the reverse); system-specific extended file attributes; and, of
  32. course, the ability to run under most of your favorite operating systems.
  33. Plus, it's free. :-)
  34. For source distributions, see the main Contents file for a list of what's
  35. included, and read INSTALL for instructions on compiling (including OS-
  36. specific comments). The individual operating systems' Contents files (for
  37. example, vms/Contents) may list important compilation info in addition to
  38. explaining what files are what, so be sure to read them. Some of the ports
  39. have their own, special README files, so be sure to look for those, too.
  40. See unzip.1 or unzip.txt for usage (or the corresponding UnZipSFX, ZipInfo,
  41. fUnZip and ZipGrep docs). For VMS, unzip_def.rnh or unzip_cli.help may be
  42. compiled into unzip.hlp and installed as a normal VMS help entry; see
  43. vms/descrip.mms.
  44. CHANGES AND NEW FEATURES
  45. ------------------------
  46. UnZip 6.0 finally supports nowadays "large" files of sizes > 2 GiB!
  47. This is the first release containing support for the PKWARE Zip64
  48. enhancements.
  49. Major changes are:
  50. - Support PKWARE ZIP64 extensions, allowing Zip archives and Zip archive
  51. entries larger than 4 GiBytes and more than 65536 entries within a single
  52. Zip archive. This support is currently only available for Unix,
  53. OpenVMS and Win32/Win64.
  54. - Support for bzip2 compression method.
  55. - Support for UTF-8 encoded entry names, both through PKWARE's "General
  56. Purpose Flags Bit 11" indicator and Info-ZIP's new "up" unicode path
  57. extra field. (Currently, on Windows the UTF-8 handling is limited to
  58. the character subset contained in the configured non-unicode "system
  59. code page".)
  60. - Added "wrong implementation used" warning to error messages of the MSDOS
  61. port when used under Win32, in an attempt to reduce false bug reports.
  62. - Fixed "Time of Creation/Time of Use" vulnerability when setting attributes
  63. of extracted files, for Unix and Unix-like ports.
  64. - Fixed memory leak when processing invalid deflated data.
  65. - Fixed long-standing bug in unshrink (partial_clear), added boundary checks
  66. against invalid compressed data.
  67. - On Unix, keep inherited SGID attribute bit for extracted directories
  68. unless restoration of owner/group id or SUID/SGID/Tacky attributes was
  69. requested.
  70. - On Unix, allow extracted filenames to contain embedded control characters
  71. when explicitly requested by specifying the new command line option "-^".
  72. - On Unix, support restoration of symbolic link attributes.
  73. - On Unix, support restoration of 32-bit UID/GID data using the new "ux"
  74. IZUNIX3 extra field introduced with Zip 3.0.
  75. - Support for ODS5 extended filename syntax on new OpenVMS systems.
  76. - Support symbolic links zipped up on VMS.
  77. - On VMS (only 8.x or better), support symbolic link creation.
  78. - On VMS, support option to create converted text files in Stream_LF format.
  79. - New -D option to suppress restoration of timestamps for extracted
  80. directory entries (on those ports that support setting of directory
  81. timestamps). By specifying "-DD", this new option also allows to suppress
  82. timestamp restoration for ALL extracted files on all UnZip ports which
  83. support restoration of timestamps.
  84. On VMS, the default behaviour is now to skip restoration of directory
  85. timestamps; here, "--D" restores ALL timestamps, "-D" restores none.
  86. - On OS/2, Win32, and Unix, the (previously optional) feature UNIXBACKUP
  87. to allow saving backup copies of overwritten files on extraction is now
  88. enabled by default.
  89. For the UnZip 6.0 release, we want to give special credit to Myles Bennet,
  90. who started the job of supporting ZIP64 extensions and Large-File (> 2GiB)
  91. and provided a first (alpha-state) port.
  92. The 5.52 maintenance release fixes a few minor problems found in the 5.51
  93. release, closes some more security holes, adds a new AtheOS port, and
  94. contains a Win32 extra-field code cleanup that was not finished earlier.
  95. The most important changes are:
  96. - (re)enabled unshrinking support by default, the LZW patents have expired
  97. - fixed an extraction size bug for encrypted stored entries (12 excess bytes
  98. were written with 5.51)
  99. - fixed false "uncompressed size mismatch" messages when extracting
  100. encrypted archive entries
  101. - do not restore SUID/SGID/Tacky attribute bits on Unix (BeOS, AtheOS)
  102. unless explicitely requested by new "-K" command line qualifier
  103. - optional support for "-W" qualifier to modify the pattern matching syntax
  104. (with -W: "*" stops at directory delimiter, "**" matches unlimited)
  105. - prevent buffer overflow caused by bogus extra-long Zipfile specification
  106. - performance enhancements for VMS port
  107. - fixed windll interface handling of its extraction mode qualifiers
  108. nfflag, ExtractOnlyNewer, noflag, PromptToOverwrite; added detailed
  109. explanation of their meanings and interactions to the windll documentation
  110. The 5.51 maintenance release adds a command-line CE port, intended for
  111. batch processing. With the integration of this port, the pUnZip port
  112. has been revised and "revitalized".
  113. The most important changes for the general public are a number of
  114. bug fixes, mostly related to security issues:
  115. - repair a serious bug in the textmode output conversion code for the 16-bit
  116. ports (16-bit MSDOS, OS/2 1.x, some variants of AMIGA, possibly others)
  117. which was introduced by the Deflate64 support of release 5.5
  118. - fix a long standing bug in the the inflate decompression method that
  119. prevented correct extraction in some rare cases
  120. - fixed holes in parent dir traversal security code (e.g.: ".^C." slipped
  121. through the previous version of the check code)
  122. - fixed security hole: check naming consistency in local and central header
  123. - fixed security hole: prevent extracted symlinks from redirecting file
  124. extraction paths
  125. The main addition in the 5.5 release is support for PKWARE's new Deflate64(tm)
  126. algorithm, which appeared first in PKZIP 4.0 (published November 2000).
  127. As usual, some other bugfixes and clean-ups have been integrated:
  128. - support for Deflate64 (Zip compression method #9)
  129. - support for extracting VMS variable length record text files on
  130. any system
  131. - optional "cheap autorun" feature for the SFX stub
  132. - security fixes:
  133. * strip leading slash from stored pathspecs,
  134. * remove "../" parent dir path components from extracted file names
  135. - new option "-:" to allow verbatim extraction of file names containing
  136. "../" parent dir path specs
  137. - fixed file handle leak for the DLL code
  138. - repaired OS2 & WinNT ACL extraction which was broken in 5.42
  139. The 5.42 maintenance release fixes more bugs and cleans up the redistribution
  140. conditions:
  141. - removal of unreduce.c and amiga/timelib.c code to get rid of the last
  142. distribution restrictions beyond the BSD-like Info-ZIP LICENSE
  143. - new generic timelib replacement (currently used by AMIGA port)
  144. - more reasonable mapping rules of UNIX "leading-dot" filenames to the
  145. DOS 8.3 name convention
  146. - repaired screensize detection in MORE paging code
  147. (was broken for DOS/OS2/WIN32 in 5.41)
  148. The 5.41 maintenance release adds another new port and fixes some bugs.
  149. - new BSD-like LICENSE
  150. - new Novell Netware NLM port
  151. - supports extraction of archives with more than 64k entries
  152. - attribute handling of VMS port was broken in UnZip 5.4
  153. - decryption support integrated in the main source distribution
  154. The 5.4 release adds new ports, again. Other important items are changes
  155. to the listing format, new supplemental features and several bug fixes
  156. (especially concerning time-stamp handling...):
  157. - new IBM OS/390 port, a UNIX derivate (POSIX with EBCDIC charset)
  158. - complete revision of the MacOS port
  159. - changed listing formats to enlarge the file size fields for more digits
  160. - added capability to restore directory attributes on MSDOS, OS/2, WIN32
  161. - enabled support of symbolic links on BeOS
  162. - Unix: optional Acorn filetype support, useful for volumes exported via NFS
  163. - several changes/additions to the DLL API
  164. - GUI SFX stub for Win16 (Windows 3.1) and Win32 (Windows 9x, Windows NT)
  165. - new free GCC compiler environments supported on WIN32
  166. - many time-zone handling bug fixes for WIN32, AMIGA, ...
  167. The 5.32 release adds two new ports and a fix for at least one relatively
  168. serious bug:
  169. - new FlexOS port
  170. - new Tandem NSK port
  171. - new Visual BASIC support (compatibility with the Windows DLLs)
  172. - new -T option (set zipfile timestamp) for virtually all ports
  173. - fix for timestamps beyond 2038 (e.g., 2097; crashed under DOS/Win95/NT)
  174. - fix for undetected "dangling" symbolic links (i.e., no pointee)
  175. - fix for VMS indexed-file extraction problem (stored with Zip 2.0 or 2.1)
  176. - further performance optimizations
  177. The 5.31 release included nothing but small bug-fixes and typo corrections,
  178. with the exception of some minor performance tweaks.
  179. The 5.3 release added still more ports and more cross-platform portability
  180. features:
  181. - new BeOS port
  182. - new SMS/QDOS port
  183. - new Windows CE graphical port
  184. - VM/CMS port fully updated and tested
  185. - MVS port fully updated and tested
  186. - updated Windows DLL port, with WiZ GUI spun off to a separate package
  187. - full Universal Time (UTC or GMT) support for trans-timezone consistency
  188. - cross-platform support for 8-bit characters (ISO Latin-1, OEM code pages)
  189. - support for NT security descriptors (ACLs)
  190. - support for overwriting OS/2 directory EAs if -o option given
  191. - updated Solaris/SVR4 package facility
  192. What is (still!) not added is multi-part archive support (a.k.a. "diskette
  193. spanning", though we really mean archive splitting and not the old diskette
  194. spanning) and a unified and more powerful DLL interface. These are the two
  195. highest priorities for the 6.x releases. Work on the former is almost
  196. certain to have commenced by the time you read this. This time we mean it!
  197. You betcha. :-)
  198. Although the DLLs are still basically a mess, the Windows DLLs (16- and 32-
  199. bit) now have some documentation and a small example application. Note that
  200. they should now be compatible with C/C++, Visual BASIC and Delphi. Weirder
  201. languages (FoxBase, etc.) are probably Right Out.
  202. INTERNET RESOURCES
  203. ------------------
  204. Info-ZIP's web site is at http://www.info-zip.org/pub/infozip/
  205. and contains the most up-to-date information about coming releases,
  206. links to binaries, and common problems.
  207. (See http://www.info-zip.org/pub/infozip/FAQ.html for the latter.)
  208. Files may also be retrieved via ftp://ftp.info-zip.org/pub/infozip/ .
  209. Thanks to LEO (Munich, Germany) for previously hosting our primary site.
  210. DISTRIBUTION
  211. ------------
  212. If you have a question regarding redistribution of Info-ZIP software, either
  213. as is, as packaging for a commercial product, or as an integral part of a
  214. commercial product, please read the Frequently Asked Questions (FAQ) section
  215. of the included COPYING file. All Info-ZIP releases are now covered by
  216. the Info-ZIP license. See the file LICENSE. The most current license
  217. should be available at http://www.info-zip.org/license.html and
  218. ftp://ftp.info-zip.org/pub/infozip/license.html.
  219. Insofar as C compilers are rare on some platforms and the authors only have
  220. direct access to a subset of the supported systems, others may wish to pro-
  221. vide ready-to-run executables for new systems. In general there is no prob-
  222. lem with this; we require only that such distributions include this README
  223. file, the WHERE file, the LICENSE file (contains copyright/redistribution
  224. information), and the appropriate documentation files (unzip.txt and/or
  225. unzip.1 for UnZip, etc.). If the local system provides a way to make self-
  226. extracting archives in which both the executables and text files can be
  227. stored together, that's best (in particular, use UnZipSFX if at all possible,
  228. even if it's a few kilobytes bigger than the alternatives); otherwise we
  229. suggest a bare UnZip executable and a separate zipfile containing the re-
  230. maining text and binary files. If another archiving method is in common
  231. use on the target system (for example, Zoo or LHa), that may also be used.
  232. BUGS AND NEW PORTS: CONTACTING INFO-ZIP
  233. ----------------------------------------
  234. All bug reports and patches (context diffs only, please!) should be
  235. submitted either through the new Info-ZIP Discussion Forum at
  236. http://www.info-zip.org/board/board.pl or through the Info-ZIP SourceForge
  237. site at http://sourceforge.net/projects/infozip/. The forum allows file
  238. attachments while SourceForge provides a place to post patches. The old
  239. Zip-Bugs@lists.wku.edu e-mail address for the Info-ZIP authors was
  240. discontinued after heavy continuous spam, as was the QuickTopic discussion
  241. forum. The above methods are public, but we also can be reached directly
  242. using the web reply page at http://www.info-zip.org/zip-bug.html. If you
  243. need to send us files privately, contact us first for instructions.
  244. "Dumb questions" that aren't adequately answered in the documentation
  245. should also be directed to Zip-Bugs rather than to a global forum such
  246. as Usenet. (Kindly make certain that your question *isn't* answered by
  247. the documentation, however--a great deal of effort has gone into making
  248. it clear and complete.)
  249. Suggestions for new features can be discussed on the new Discussion Forum.
  250. A new mailing list for Info-ZIP beta testers and interested parties may
  251. be created someday, but for now any issues found in the betas should use
  252. the forum. We make no promises to act on all suggestions or even all
  253. patches, but if it is something that is manifestly useful, sending the
  254. required patches to Zip-Bugs directly (as per the instructions in the
  255. ZipPorts file) is likely to produce a quicker response than asking us to
  256. do it--the authors are always ridiculously short on time. (Please do
  257. NOT send patches or encoded zipfiles to the Info-ZIP list. Please DO
  258. read the ZipPorts file before sending any large patch. It would be
  259. difficult to over-emphasize this point...)
  260. If you are considering a port, not only should you read the ZipPorts file,
  261. but also please check in with Zip-Bugs BEFORE getting started, since the
  262. code is constantly being updated behind the scenes. (For example, VxWorks,
  263. VMOS and Netware ports were once claimed to be under construction, although
  264. we have yet to see any up-to-date patches.) We will arrange to send you the
  265. latest sources. The alternative is the possibility that your hard work will
  266. be tucked away in a subdirectory and mostly ignored, or completely ignored
  267. if someone else has already done the port (and you'd be surprised how often
  268. this has happened).
  269. BETA TESTING: JOINING INFO-ZIP
  270. -------------------------------
  271. If you'd like to keep up to date with our UnZip (and companion Zip utility)
  272. development, join the ranks of beta testers, add your own thoughts and
  273. contributions, or simply lurk, you may join one of our mailing lists.
  274. There is an announcements-only list (Info-ZIP-announce) and a general
  275. discussion/testing list (Info-ZIP). You must be a subscriber to post, and
  276. you can subscribe via the links on our Frequently Asked Questions page:
  277. http://www.info-zip.org/pub/infozip/FAQ.html#lists
  278. (Please note that as of late May 2004, the lists are unavailable pending
  279. a move to a new site; we hope to have them restored shortly. In the
  280. interim ...) Feel free to use our bug-reporting web page for bug reports
  281. and to ask questions not answered on the FAQ page above:
  282. http://www.info-zip.org/zip-bug.html
  283. For now the best option is to monitor and contribute to the various threads
  284. on the new discussion forum site at:
  285. http://www.info-zip.org/board/board.pl
  286. The second best way to contribute is through the various features at
  287. SourceForge, such as the bug posting areas.
  288. There is also a closed mailing list for internal discussions of our core
  289. development team. This list is now kept secret to prevent us from being
  290. flooded with spam messages.
  291. -- Greg Roelofs (sometimes known as Cave Newt), principal UnZip developer
  292. guy, with inspiration from David Kirschbaum, was Author of this text.
  293. -- Christian Spieler (shorthand: SPC), current UnZip maintenance coordinator,
  294. applied the most recent changes, with Ed Gordon providing a few additions.