gzip -d would fail with a CRC error...
[debian/gzip] / NEWS
1 GNU gzip NEWS                                    -*- outline -*-
2
3 * Noteworthy changes in release ?.? (????-??-??) [?]
4
5 ** Bug fixes
6
7   gzip -d would fail with a CRC error for some valid inputs.
8   So far, the only valid input known to exhibit this failure was
9   compressed "from FAT filesystem (MS-DOS, OS/2, NT)".  In addition,
10   to trigger the failure, your memcpy implementation must copy in
11   the "reverse" order.
12
13
14 * Noteworthy changes in release 1.3.14 (2009-10-30) [beta]
15
16 ** Bug fixes
17
18   gzip no longer fails when there is exactly one trailing NUL byte
19   gzip has always accepted trailing NUL bytes.  Note the plural.
20
21   zdiff would exit with status 2 (indicating an error) rather than 1 to
22   indicate differences when both inputs were compressed and different.
23
24   zdiff would fail to print differences in two compressed inputs
25
26   zgrep -f - didn't work
27
28
29 * Noteworthy changes in release 1.3.13 (2009-09-30) [stable]
30
31 ** Bug fixes
32
33   gzip -d no longer fails with "-" as 2nd or subsequent argument
34
35   gzip no longer ignores a close-induced write failure, e.g., on NFS
36
37   gzip -d no longer segfaults on certain invalid inputs
38
39
40 Major changes in Gzip 1.3.12 (2007-04-13)
41
42 * znew now uses $TMPDIR (default /tmp) instead of always using /tmp.
43
44 * 'gzip -f foo.gz' now creates a file foo.gz.gz instead of complaining.
45
46 * It is now documented that gzip ignores case when examining file name
47   extensions; for example, 'gzip test.Gz' (without -f) fails because
48   the file name ends in '.Gz'.
49
50 Major changes in Gzip 1.3.11 (2007-02-05)
51
52 * As per the GNU coding standards, the behavior of gzip and its
53   companion executables no longer depend on the name used to invoke them.
54   For example, 'gzip' and 'gunzip' are no longer hard links;
55   instead, 'gunzip' is now a small program that invokes 'gzip -d'.
56
57 * zdiff now checks for subsidiary gzip failures, and works around
58   bugs in IRIX 6 sh, Tru64 4.0F ksh, and Solaris 8 bash.
59
60 Major changes in Gzip 1.3.10 (2006-12-30)
61
62 * gzip -c and zcat now work on special files, files with special mode bits,
63   and files with multiple hard links.
64 * gzip -q now exits with status 2 (not 1) when SIGPIPE is received.
65 * zcmp and zdiff did not work in the usual case, due to a typo.
66 * zgrep has many bugs fixed with argument handling, special characters,
67   and exit status.
68 * zless no longer mishandles $%=~ in file names.
69
70 Gzip 1.3.9 (2006-12-15)
71
72 * No major changes; only porting fixes.
73
74 Major changes in Gzip 1.3.8 (2006-12-08)
75
76 * Fix some gzip problems:
77   - A security fix from Debian 1.3.5-5 was inadvertently omitted.
78   - The assembler is now invoked with --noexecstack if supported,
79     so that gzip can better resist stack-smashing attacks.
80
81 Major changes in Gzip 1.3.7 (2006-12-06)
82
83 * Fix some gzip problems:
84   - Refuse to compress setuid or setgid files, or files with the sticky bit.
85   - Fix more race conditions in setting file permissions and owner,
86     removing output files, following symbolic links, and dealing with
87     special files.
88   - Remove most of the code working around ENAMETOOLONG deficiencies.
89     Systems with those deficiencies are long-dead, and the workarounds
90     had race conditions on modern hosts.
91   - Catch CPU time and file size limit signals, too.
92   - Check for read errors when closing files.
93   - Fix a core dump caused by a stray abort mistakenly introduced in 1.3.6.
94 * Fix some gzexe problems:
95   - Improve resistance to denial-of-service attacks.
96   - Fix some quoting and escaping bugs.
97   - Do not assume /tmp is sticky (though it should be!).
98   - Do not assume the working directory can be written.
99   - Rely on PATH in the generated executable, as the man page says.
100   - Don't assume IFS is sane.
101   - Exit with signal's status, if signaled.
102
103 Major changes in Gzip 1.3.6 (2006-11-20)
104
105 * Fix some race conditions in setting file time stamps, permissions, and owner.
106 * Fix some race conditions in signal handling.
107 * When gzip exits due to a signal, it exits with the signal's status, not 1.
108 * gzip now restores file time stamps to the resolution supported by the
109   time-setting primitives of the operating system, typically 1 microsecond.
110   Formerly it restored them only to the nearest second.
111 * gzip -r no longer attempts to reset the last-access times of directories
112   it reads, as this messes up when other processes are reading the directories.
113 * The options --version and --help now work on all gzip-installed executables,
114   and now use a format similar to other GNU programs.
115 * The manual is now distributed under the terms of the GNU Free
116   Documentation License without invariant sections or cover texts.
117 * Port to current versions of Autoconf, Automake, and Gnulib.
118
119 Major changes from 1.3.4 to 1.3.5
120 * gzip now removes any output symlink before writing output file.
121 * zgrep etc. scripts now port to POSIX 1003.1-2001 hosts.
122 * zforce no longer assumes 14-byte file name length limit.
123 * zless is now implemented using less and LESSOPEN, not zmore and PAGER.
124 * assembly-language speedups reenabled; were mistakenly disabled in 1.3.
125
126 Major changes from 1.3.3 to 1.3.4
127 * Less output is lost when decompressing a truncated file.
128 * The manual is now distributed under the terms of the GNU Free
129   Documentation License.
130
131 No major changes in 1.3.2 or 1.3.3 (bug fixes only)
132
133 Major changes from 1.3 to 1.3.1
134 * zgrep now supports --, -H, -h, -L, -l, -C, -d, -m and their long equivalents.
135
136 Major changes from 1.2.4 to 1.3
137 * Add support for large files, e.g. files larger than 2 GB on Solaris 2.6.
138 * Adjust file size listing format for files larger than 10 GB.
139 * New command `zless'.
140 * `zdiff' now reports exit status like `diff' does.
141 * `zcat' is now always called `zcat', not `gzcat'.
142   Similarly for `zdiff', `zgrep', `zmore', `znew', `zforce'.
143 * Warn about a compressed file's trailing zeros only if verbose,
144   for compatibility with recent versions of GNU tar.
145 * Conform to changes to GNU makefile standards.
146 * Port to Autoconf 2.13.
147 * Convert to Automake.
148 * Fix bugs in the following areas:
149   - files larger than 4 GB
150   - security hole involving symlinks from /tmp
151   - security hole involving long file names
152   - permissions bug when compressing a symbolic link to a file
153   - core dumps
154   - concatenated compressed files on INBUFSIZ boundaries
155   - porting bugs on hosts with signed chars
156   - porting bug with upper and lower case
157   - porting bug for hosts that reserve the names `basename' or `warning'
158
159 Major changes from 1.2.3 to 1.2.4
160 * By default, do not restore file name and timestamp from those saved
161   inside the .gz file (behave as 'compress'). Added the --name option
162   to force name and timestamp restoration.
163 * Accept - as synonym for stdin.
164 * Use manlinks=so or ln to support either hard links or .so in man pages
165 * Accept foo.gz~ in zdiff.
166 * Added support for Windows NT
167 * Handle ENAMETOOLONG for strict Posix systems
168 * Use --recursive instead of --recurse to comply with Webster and
169   the GNU stdandard.
170 * Allow installation of shell scripts with a g prefix: make G=g install
171 * Install by default zcat as gzcat if gzcat already exists in path.
172 * Let zmore behave as more when invoked without parameters (give help)
173 * Let gzip --list reject files not in gzip format even with --force.
174 * Don't complain about non gzip files for options -rt or -rl.
175 * Added advice in INSTALL for several systems.
176
177 Major changes from 1.2.2 to 1.2.3
178 * Don't display the output name when decompressing except with --verbose.
179 * Remove usage of alloca in getopt.c and all makefiles.
180 * Added the zfile shell script in subdirectory sample.
181 * Moved the list of compiler bugs from README to INSTALL.
182 * Added vms/Readme.vms.
183
184 Major changes from 1.2.1 to 1.2.2
185 * Fix a compilation error on Sun with cc (worked with gcc).
186
187 Major changes from 1.2 to 1.2.1
188 * Let zmore act as more if the data is not gzipped.
189 * made gzexe more secure (don't rely on PATH).
190 * By default, display output name only when the name was actually truncated.
191
192 Major changes from 1.1.2 to 1.2
193 * Added the --list option to display the file characteristics.
194 * Added the --no-name option: do not save or restore original filename
195   Save the original name by default.
196 * Allow gunzip --suffix "" to attempt decompression on any file
197   regardless of its extension if an original name is present.
198 * Add support for the SCO compress -H format.
199 * gzip --fast now compresses faster (speed close to that of compress)
200   with degraded compression ratio (but still better than compress).
201   Default level changed to -6 (acts exactly as previous level -5) to
202   be a better indication of its placement in the speed/ratio range.
203 * Use smart name truncation: 123456789012.c -> 123456789.c.gz
204    instead of 12345678901.gz
205 * With --force, let zcat pass non gzip'ed data unchanged (zcat == cat)
206 * Added the zgrep shell script.
207 * Made sub.c useful for 16 bit sound, 24 bit images, etc..
208 * Supress warnings about suffix for gunzip -r, except with --verbose.
209 * On MSDOS, use .gz extension when possible (files without extension)
210 * Moved the sample programs to a subdirectory sample.
211 * Added a "Special targets" section in INSTALL.
212
213 Major changes from 1.1.1 to 1.1.2.
214 * Fix serious bug for VMS (-gz not removed when decompressing).
215 * Allow suffix other than .gz in znew.
216 * Do not display compression ratio when decompressing stdin.
217 * In zmore.in, work around brain damaged stty -g (Ultrix).
218 * Display a correct compression ratio for .Z files.
219 * Added .z to .gz renaming script in INTALL.
220 * Allow setting CFLAGS in configure.
221
222 Major changes from 1.1 to 1.1.1.
223 * Fix serious bug in vms.c (affects Vax/VMS only).
224 * Added --ascii option.
225 * Add workaround in configure.in for Ultrix (quote eval argument)
226
227 Major changes from 1.0.7 to 1.1.
228 * Use .gz suffix by default, add --suffix option.
229 * Let gunzip accept a "_z" suffix (used by one 'compress' on Vax/VMS).
230 * Quit when reading garbage from stdin instead of reporting an error.
231 * Added makefile for VAX/MMS and support for wildcards on VMS.
232 * Added support for MSC under OS/2.
233 * Added support for Prime/PRIMOS.
234 * Display compression ratio also when decompressing (with --verbose).
235 * Quit after --version (GNU standard)
236 * Use --force to bypass isatty() check
237 * Continue processing other files in case of recoverable error.
238 * Added comparison of zip and gzip in the readme file.
239 * Added small sample programs (ztouch, sub, add)
240 * Use less memory when compiled with -DSMALL_MEM (for MSDOS).
241 * Remove the "off by more than one minute" time stamp kludge
242
243 Major changes from 1.0.6 to 1.0.7.
244 * Allow zmore to read from standard input (like more).
245 * Support the 68000 (Atari ST) in match.S.
246 * Retry partial writes (required on Linux when gzip is suspended in a pipe).
247 * Allow full pathnames and renamings in gzexe.
248 * Don't let gzexe compress setuid executables or gzip itself.
249 * Added vms/Makefile.gcc for gcc on the Vax.
250 * Allow installation of binaries and shell scripts in different dirs.
251 * Allows complex PAGER variable in zmore (e.g.: PAGER="col -x | more")
252 * Allow installation of zcat as gzcat.
253 * Several small changes for portability to old or weird systems.
254 * Suppress help message and send compressed data to the terminal when
255   gzip is invoked without parameters and without redirection.
256 *  Add compile option GNU_STANDARD to respect the GNU coding standards:
257    with -DGNU_STANDARD, behave as gzip even if invoked under the name gunzip.
258 (I don't like the last two changes, which were requested by the FSF.)
259
260 Major changes from 1.0.5 to 1.0.6.
261 * Let gzexe detect executables that are already gzexe'd.
262 * Keep file attributes in znew and gzexe if cpmod is available.
263 * Don't try restoring record format on VMS (1.0.5 did not work correctly)
264 * Added asm version for 68000 in amiga/match.a.
265   Use asm version for Atari TT and NeXT.
266 * For OS/2, assume HPFS by default, add flag OS2FAT if necessary.
267 * Fixed some bugs in zdiff and define zcmp as a link to zdiff.
268
269
270 Major changes from 1.0.4 to 1.0.5.
271 * For VMS, restore the file type for variable record format, otherwise
272     extract in fixed length format (not perfect, but better than
273     forcing all files to be in stream_LF format).
274 * For VMS, use "-z" default suffix and accept a version number in file names.
275 * For Unix, allow compression of files with name ending in 'z'. Use only
276   .z, .*-z, .tgz, .taz as valid gzip extensions. In the last two cases,
277   extract to .tar by default.
278 * On some versions of MSDOS, files with a 3 character extension could not
279   be compressed.
280 * Garbage collect files in /tmp created by gzexe.
281 * Fix the 'OS code' byte in the gzip header.
282 * For the Amiga, add the missing utime.h and add support for gcc.
283
284
285 Major changes from 1.0.3 to 1.0.4.
286 * Added optimized asm version for 68020.
287 * Add support for DJGPP.
288
289 * Add support for the Atari ST.
290 * Added zforce to rename gzip'ed files with truncated names.
291 * Do not install with name uncompress (some systems rely on the
292   absence of any check in the old uncompress).
293 * Added missing function (fcfree) in msdos/tailor.c
294 * Let gunzip handle .tgz files, and let gzip skip them.
295 * Added -d option (decompress) for gzexe and try preserving file permissions.
296 * Suppress all warnings with -q.
297 * Use GZIP_OPT for VMS to avoid conflict with program name.
298 * ... and many other small changes (see ChangeLog)
299
300
301 Major changes from 1.0.2 to 1.0.3
302 * Added -K option for znew to keep old .Z files if smaller
303 * Added -q option (quiet) to cancel -v in GZIP env variable.
304 * Made gzexe safer on systems with filename limitation to 14 chars.
305 * Fixed bugs in handling of GZIP env variable and incorrect free with Turbo C.
306
307
308 Major changes from 1.0.1 to 1.0.2
309 * Added env variable GZIP for default options. Example:
310    for sh:   GZIP="-8 -v"; export GZIP
311    for csh:  setenv GZIP "-8 -v"
312 * Added support for the Amiga.
313 * znew now keeps the old .Z if it is smaller than the .z file.
314   This can happen for some large and very redundant files.
315 * Do not complain about trailing garbage for record oriented IO (Vax/VMS).
316   This implies however that multi-part gzip files are not supported
317   on such systems.
318 * Added gzexe to compress rarely used executables.
319 * Reduce memory usage (required for MSDOS and useful on all systems).
320 * Preserve time stamp in znew -P (pipe option) if touch -r works.
321
322
323 Major changes from 1.0 to 1.0.1
324 * fix trivial errors in the Borland makefile (msdos/Makefile.bor)
325
326
327 Major changes from 0.8.2 to 1.0
328 * gzip now runs on Vax/VMS
329 * gzip will not not overwrite files without -f when using /bin/sh in
330   background.
331 * Support the test option -t for compressed (.Z) files.
332   Allow some data recovery for bad .Z files.
333 * Added makefiles for MSDOS (Only tested for MSC, not Borland).
334 * still more changes to configure for several systems
335
336
337 Major changes from 0.8.1 to 0.8.2:
338 * yet more changes to configure for Linux and other systems
339 * Allow zcat on a file with multiple links.
340
341
342 Major changes from 0.8 to 0.8.1:
343 * znew has now a pipe option -P to reduce the disk space requirements,
344   but this option does not preserve timestamps.
345 * Fixed some #if directives for compilation with TurboC.
346
347
348 Major changes from 0.7 to 0.8:
349 * gzip can now extract .z files created by 'pack'.
350 * configure should no longer believe that every machine is a 386
351 * Fix the entry for /etc/magic in INSTALL.
352 * Add patch for GNU tar 1.11.1 and a pointer to crypt++.el
353 * Uncompress files with multiple links only with -f.
354 * Fix for uncompress of .Z files on 16-bit machines
355 * Create a correct output name for file names of exactly N-1 chars when
356   the system has a limit of N chars.
357
358
359 Major changes from 0.6 to 0.7:
360 * Use "make check" instead of "make test".
361 * Keep time stamp and pass options to gzip in znew.
362 * Do not create .z.z files with gzip -r.
363 * Allow again gunzip .zip files (was working in 0.5)
364 * Allow again compilation with TurboC 2.0 (was working in 0.4)
365
366
367 Major changes form 0.5 to 0.6:
368 * gunzip reported an error when extracting certain .z files. The .z files
369   produced by gzip 0.5 are correct and can be read by gunzip 0.6.
370 * gunzip now supports multiple compressed members within a single .z file.
371 * Fix the check for i386 in configure.
372 * Added "make test" to check for compiler bugs. (gcc -finline-functions
373   is broken at least on the NeXT.)
374 * Use environment variable PAGER in zmore if it is defined.
375 * Accept gzcat in addition to zcat for people having /usr/bin before
376   /usr/local/bin in their path.
377
378
379 ========================================================================
380
381 Copyright (C) 1999, 2001-2002, 2006-2007, 2009-2010 Free Software Foundation,
382 Inc.
383 Copyright (C) 1992, 1993 Jean-loup Gailly
384
385 Permission is granted to copy, distribute and/or modify this document
386 under the terms of the GNU Free Documentation License, Version 1.3 or
387 any later version published by the Free Software Foundation; with no
388 Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
389 Texts.  A copy of the license is included in the ``GNU Free
390 Documentation License'' file as part of this distribution.