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