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