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