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