diff options
author | delphij <delphij@FreeBSD.org> | 2015-10-26 22:29:58 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2015-10-26 22:29:58 +0000 |
commit | fa0220660e89720477c6a60be7822f684040f5eb (patch) | |
tree | 3bebabcae28b38a8f727af446f82a18155701d49 /usr.bin/gzip/gzip.1 | |
parent | 9e0a6fa5393318c1e0eb68cc28d0bada46d9109f (diff) | |
download | FreeBSD-src-fa0220660e89720477c6a60be7822f684040f5eb.zip FreeBSD-src-fa0220660e89720477c6a60be7822f684040f5eb.tar.gz |
In gunzip(1), treat trailing garbage as a warning and not an error. This
allows scripts to distinguish it between real fatal errors, for instance a
CRC mismatch.
Update manual page for the behavior change.
PR: bin/203873
Submitted by: Eugene Grosbein <eugen grosbein net>
MFC after: 2 weeks
Diffstat (limited to 'usr.bin/gzip/gzip.1')
-rw-r--r-- | usr.bin/gzip/gzip.1 | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/usr.bin/gzip/gzip.1 b/usr.bin/gzip/gzip.1 index 43d0e72..1693724 100644 --- a/usr.bin/gzip/gzip.1 +++ b/usr.bin/gzip/gzip.1 @@ -25,7 +25,7 @@ .\" SUCH DAMAGE. .\" .\" $FreeBSD$ -.Dd April 6, 2015 +.Dd October 26, 2015 .Dt GZIP 1 .Os .Sh NAME @@ -136,7 +136,7 @@ option, allowing non-compressed data to pass through unchanged. .It Fl h , -help This option prints a usage summary and exits. .It Fl k , -keep -Keep (don't delete) input files during compression +Keep (do not delete) input files during compression or decompression. .It Fl L , -license This option prints @@ -183,6 +183,12 @@ is set, it is parsed as a white-space separated list of options handled before any options on the command line. Options on the command line will override anything in .Ev GZIP . +.Sh EXIT STATUS +The +.Nm +utility exits 0 on success, +1 on errors, +and 2 if a warning occurs. .Sh SEE ALSO .Xr bzip2 1 , .Xr compress 1 , @@ -220,7 +226,7 @@ with unpack support written by .An Xin LI Aq Mt delphij@FreeBSD.org . .Sh BUGS According to RFC 1952, the recorded file size is stored in a 32-bit -integer, therefore, it can not represent files larger than 4GB. +integer, therefore, it cannot represent files larger than 4GB. This limitation also applies to .Fl l option of |