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