History log of /freebsd-10.0-release/usr.bin/compress/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


229403 03-Jan-2012 ed

Replace index() and rindex() calls with strchr() and strrchr().

The index() and rindex() functions were marked LEGACY in the 2001
revision of POSIX and were subsequently removed from the 2008 revision.
The strchr() and strrchr() functions are part of the C standard.

This makes the source code a lot more consistent, as most of these C
files also call into other str*() routines. In fact, about a dozen
already perform strchr() calls.


227458 11-Nov-2011 eadler

- add a missing "be" and "in"
- fix other errors introduced when committing r226436
- add 'function' to a sentence where it makes sense

Submitted by: delphij
Submitted by: dougb
Submitted by: jhb
Approved by: dougb
Approved by: jhb


227236 06-Nov-2011 ed

Mark global functions and/or variables in compress(1) static where possible.

This allows compilers and static analyzers to more thorough analysis.


226436 16-Oct-2011 eadler

- change "is is" to "is" or "it is"
- change "the the" to "the"

Approved by: lstewart
Approved by: sahil (mentor)
MFC after: 3 days


225827 28-Sep-2011 bz

Fix handling of corrupt compress(1)ed data. [11:04]

Add missing length checks on unix socket addresses. [11:05]

Approved by: so (cperciva)
Approved by: re (kensmith)
Security: FreeBSD-SA-11:04.compress
Security: CVE-2011-2895 [11:04]
Security: FreeBSD-SA-11:05.unix


220201 31-Mar-2011 emaste

Remove $Log$ keyword, which can cause annoyance in diffs in some cases.
Revision control tools have a history command to obtain this information.


216370 11-Dec-2010 joel

Remove the advertising clause from UCB copyrighted files in usr.bin. This
is in accordance with the information provided at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change

Also add $FreeBSD$ to a few files to keep svn happy.

Discussed with: imp, rwatson


213927 16-Oct-2010 bcr

Correct some typos in comments, no functional changes.


205793 28-Mar-2010 ed

Change all our own code to use st_*tim instead of st_*timespec.

Also remove some local patches to diff(1) which are now unneeded.


201386 02-Jan-2010 ed

Build usr.bin/ with WARNS=6 by default.

Also add some missing $FreeBSD$ to keep svn happy.


200462 13-Dec-2009 delphij

Revert most part of 200420 as requested, as more review and polish is
needed.


200420 11-Dec-2009 delphij

Remove unneeded header includes from usr.bin/ except contributed code.

Tested with: make universe


152568 18-Nov-2005 ru

-mdoc sweep.


149865 07-Sep-2005 garys

Several changes: Added a BUGS section with several bugs. And

-- Made the synopses more precise.
-- Added argument to flag in option description.
-- Moved -b default and limits to option description (to un-hide).
-- Noted several behaviors that were not mentioned.
-- A few more trivial changes.

PR: docs/46787
Approved by: keramida
MFC after: 3 days


146336 18-May-2005 kan

Unbreak r1.11 by delhij. Blind change from unsigned to signed char
pointer causes problems with sign extension and leads to compress(1)
dumping core on any non-trivial incoming data.


145798 02-May-2005 delphij

Consistently use signed char so gcc4 won't complain


140368 17-Jan-2005 ru

Added the EXIT STATUS section where appropriate.


135052 10-Sep-2004 trhodes

Bump WARNS level to 6.

Submitted by: keramida
Tested on: i386, sparc64 (panther)


131635 05-Jul-2004 ru

Fix the NAME section making whatis(1) happy in particular.


131491 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


116336 14-Jun-2003 trhodes

Don't truncate the output file before making sure that we can
read at least 1 byte from the input file without problems. This
fixes a bug in uncompress(1) that causes the accidental removal
of files that happen to have the same name as the output file,
even when the uncompression fails and is aborted, i.e.:

$ echo hello world > hello
$ touch hello.Z
$ ls -l hello*
-rw-rw-r-- 1 giorgos giorgos 12 Jun 14 13:33 hello
-rw-rw-r-- 1 giorgos giorgos 0 Jun 14 13:33 hello.Z
$ ./uncompress -f hello
uncompress: hello.Z: Inappropriate file type or format
$ ls -l hello*
-rw-rw-r-- 1 giorgos giorgos 0 Jun 14 13:33 hello.Z
$

PR: 46787
Submitted by: keramida


108470 30-Dec-2002 schweikh

Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/
Add FreeBSD Id tag where missing.


105236 16-Oct-2002 charnier

Spelling.


100820 28-Jul-2002 dwmalone

ANSIify function definitions to avoid a warning.


97494 29-May-2002 ru

mdoc(7) police: lint.


96774 17-May-2002 tjr

Add a Standards section, and note that compress(1) and uncompress(1) now
conform to P1003.1-2001.


96772 17-May-2002 tjr

As required by SUSv3, a file argument of "-" causes standard input
to be compressed/decompressed to standard output.


96770 17-May-2002 tjr

Compression ratio statistics should be written to stderr instead of stdout.


96769 17-May-2002 tjr

Use exit status 2 to indicate that the file was not compressed because
its size would not be reduced (SUSv3).


95083 19-Apr-2002 charnier

Use `The .Nm utility'


94311 09-Apr-2002 trhodes

compress(1) has an erroneous description of zcat, fixed.

PR: 36453
No objections from: ru


93055 23-Mar-2002 imp

unifdef -D__STDC__


92920 22-Mar-2002 imp

remove __P


90415 08-Feb-2002 markm

Remove leaf node WARNS?=2 (that mainly I added). This should
help the GCC3 transition and CURRENT in general.


87628 10-Dec-2001 dwmalone

Style improvements recommended by Bruce as a follow up to some
of the recent WARNS commits. The idea is:

1) FreeBSD id tags should follow vendor tags.
2) Vendor tags should not be compiled (though copyrights probably should).
3) There should be no blank line between including cdefs and __FBSDIF.


87247 02-Dec-2001 markm

Use __FBSDID().
Use a better choice than size_t for vertain variables.
Fix some comment alignment.


87214 02-Dec-2001 markm

WARNS=2 fix and 'register' removal.


84303 01-Oct-2001 ru

mdoc(7) police: make double quotes in #include statement visible.


83342 11-Sep-2001 ru

mdoc(7) police: Fixed the .Ex calls in manpages that describe more
than one utility.

PR: docs/30437
Submitted by: SUZUKI Koichi <koich@cac.co.jp>


81687 15-Aug-2001 ru

mdoc(7) police: utilize the new .Ex macro.


81586 13-Aug-2001 ru

Removed duplicate VCS ID tags, as per style(9).


79755 15-Jul-2001 dd

Remove whitespace at EOL.


79535 10-Jul-2001 ru

mdoc(7) police: removed HISTORY info from the .Os call.


79305 05-Jul-2001 kris

Mark some functions as __printflike()

MFC after: 1 week


74848 27-Mar-2001 ru

MAN[1-9] -> MAN.


68963 20-Nov-2000 ru

mdoc(7) police: use the new features of the Nm macro.


68575 10-Nov-2000 ru

Avoid use of direct troff requests in mdoc(7) manual pages.


66907 10-Oct-2000 wollman

Don't depend on <sys/stat.h> bogusly including <sys/time.h> (and thereby
<time.h>).


60622 16-May-2000 hoek

From PR submitter:

compress uses setfile() to make flags, ownership and mode of the output
the same as those of the original. However, if the filesystem holding the
output file doesn't support these operations, compress prints a warning.
This bites a bit with NFS directories, which always fail the chflags()
operation. If the file system doesn't support the operation, then the
flags data wasn't valid on the original file anyway, so the warning is
spurious.

Submitted by: bin/16981 (Peter Edwards <peter.edwards@ireland.com>)


58630 26-Mar-2000 charnier

Add DIAGNOSTICS section name. Spelling


50995 06-Sep-1999 peter

Tidy up $Log$ debris


50488 28-Aug-1999 peter

$Header$ -> $FreeBSD$


50477 28-Aug-1999 peter

$Id$ -> $FreeBSD$


48792 12-Jul-1999 nik

Add $Id$, to make it simpler for members of the translation teams to
track.

The $Id$ line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;

.\" $Id$
.\"

If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.

Approved by: bde


41568 06-Dec-1998 archie

Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).


40547 21-Oct-1998 bde

Fixed previous commit to actually work. The wrong variable was initialized
earlier (with style bugs of course), so zcat was an alias for uncompress
instead of `uncompress -c'.


40534 20-Oct-1998 msmith

Behave like zcat if invoked as zcat. We don't install as zcat; this just
makes us more useful in a tight environment.

Submitted by: Wilfredo Sanchez <wsanchez@apple.com>


27096 30-Jun-1997 charnier

Uncompress is under .Nm not .Ar.


24360 29-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


23012 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


18053 05-Sep-1996 bde

Finished adjustments for cleaning up declaration of zopen(). Moving the
declaration from <stdio.h> to "zopen.h" left it undeclared here.


17797 23-Aug-1996 mpp

Use the .Bx macro where appropriate.


17717 20-Aug-1996 wosch

a header file for zopen.3

Pointed out by: Philippe Charnier <charnier@lirmm.fr>


16920 02-Jul-1996 wosch

remove zopen, zopen is not part of libc.


13123 30-Dec-1995 peter

This commit was generated by cvs2svn to compensate for changes in r13122,
which included commits to RCS files with non-trunk default branches.


8874 30-May-1995 rgrimes

Remove trailing whitespace.


5342 02-Jan-1995 ats

Correct the usage of the maxmaxcode so that compress -b 12 works again.
Thanks to Dave Rivers for reporting that problem.


5302 31-Dec-1994 jkh

Add David River's patch fix to use the passed in number of bits (-b <n>)
properly.
Submitted by: rivers


1873 05-Aug-1994 wollman

Don't use Berkeley zcat, use more powerful gzip zcat.


1591 27-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1590,
which included commits to RCS files with non-trunk default branches.