summaryrefslogtreecommitdiff
path: root/usr.bin/compress
AgeCommit message (Collapse)Author
2022-05-22uncompress: if the source is broken, don't delete the targetrillig
Fixes the second half of PR bin/19722, reported by Giorgos Keramidas.
2022-05-22uncompress: if the source doesn't exist, don't touch the targetrillig
Fixes part of PR bin/19722, reported by Giorgos Keramidas.
2022-05-22compress: normalize indentation and spacingrillig
No binary change.
2022-03-23fix few typos in comments, mainly s/paramenters/parameters/.andvar
2017-07-04Add EXIT STATUS section. Use Ex. New sentence, new line.wiz
2017-07-03Remove workaround for ancient HTML generation code.wiz
2011-08-30Use __printflike and __deadjoerg
2011-08-16Do proper input validation without penalizing performance.joerg
2011-08-16provisional fix for CVE-2011-2895, buffer overflow in decompressionchristos
2009-04-11Fix -Wcast-qual and -Wsign-compare issueslukem
2008-07-21Remove the \n and tabs from the __COPYRIGHT() strings.lukem
Tweak to use a consistent format.
2008-02-21Fix logic error: memset arguments needs the whole size.joerg
XXX nuke macro logic and just use sizeof.
2008-02-20Remove an unused assignment and convert the remaining for (; cond; )joerg
into while.
2008-02-20Shrink by using "SysV" or ANSI C memset to init hash table.joerg
2007-05-28Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on thetls
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to various string and memory copy and set functions (as well as a few system calls and other miscellany) where known at function entry. RedHat has evidently built all "core system packages" with this option for some time. This option should be used at the top of Makefiles (or Makefile.inc where this is used for subdirectories) but after any setting of LIB. This is only useful for userland code, and cannot be used in libc or in any code which includes the libc internals, because it overrides certain libc functions with macros. Some effort has been made to make USE_FORT=yes work correctly for a full-system build by having the bsd.sys.mk logic disable the feature where it should not be used (libc, libssp iteself, the kernel) but no attempt has been made to build the entire system with USE_FORT and doing so will doubtless expose numerous bugs and misfeatures. Adjust the system build so that all programs and libraries that are setuid, directly handle network data (including serial comm data), perform authentication, or appear likely to have (or have a history of having) data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default, with the exception of libc, which cannot use USE_FORT and thus uses only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no per-directory or in a system build will disable if desired.
2007-02-07Remove unused ctype.h header.hubertf
Contributed by Slava Semushin <slava.semushin@gmail.com> in private mail.
2006-04-09Coverity CID 2536: Clarify the error path further.christos
2006-04-05Rework the way that files are closed and unlinked on error.dsl
In particular avoid calling fclose() again once it has failed. Also multply 'oreg' by 2 once we modify the file - so we know when to unlink it on error. Fixes Coverty CIDs 2535 and 2536
2004-07-09Sync usage with man page. From Kouichirou Hiratsuka in PR 26197.wiz
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-04-16Usewiz
.In header.h instead of .Fd #include \*[Lt]header.h\*[Gt] Much easier to read and write, and supported by groff for ages. Okayed by ross.
2003-01-23And finally, bump date (for -d description).wiz
2003-01-23also add -d to SYNOPSISjdolecek
2003-01-23Add description of -d.grant
From Soren Jacobsen in PR bin/20005.
2002-05-26ANSIfy.wiz
2002-05-26__STDC__ is always defined on NetBSD. ANSIfy while I'm here.wiz
2002-02-08Generate <>& symbolically. I'm avoiding .../dist/... directories for now.ross
2001-12-01Whitespace cleanup.wiz
2000-10-11More format string cleanup by sommerfeld.is
2000-03-13Fix doubled 'the's.soren
1999-03-24Remove spurious .ne's.mycroft
1999-03-22More and more .Os cleanups. .Os is defined in the tmac.doc-common file,garbled
so we shouldn't override it with versions in the manpages. Many more to come.
1998-10-08Init style to quiet compiler.wsanchez
Allow zcat hard link to compress rather than using zcat.sh wrapper; same as uncompress. Don't install zcat, however; gzcat seems to be living in /usr/bin/zcat at the moment.
1998-03-10Attempt to restore a file's flags using chflags() only if the original filekleink
ad any flags set (that is, st_flags is non-zero); this avoids a warning when (un-)compressing a file on a file-system that does not support flags. Fixes PR bin/4981.
1998-02-06macroize BSD, NetBSD, FreeBSD and misc cleanupperry
1997-11-08remove WARNS?=1lukem
1997-10-19Use double, not float.mycroft
1997-10-18getopt returns -1 not EOFlukem
1997-09-15* cleanup for WARNS=1lukem
* deprecate register * rindex -> strrchr * fix .Nm usage
1997-03-24- Makefile cleanupschristos
1997-01-16stdin and stdout are not regular files; fixes PR bin/3112mikel
skip size checks, unlinking, &c. as specified by manpage if output is not a regular file replace manifest constant with BUFSIZ
1996-10-18Use ${INSTALL}.thorpej
1996-08-20Add missing braces to for-loop to make compress work again after changesabrown
between versions 1.9 and 1.10 (dumped core when not used as a filter).
1996-06-30fix lossage caused by compress' usage of /dev/stdout and /dev/stdinmrg
combined with the (broken?) versions of these files provided with the fdesc mount. fixes PR#774 & PR#957.
1995-03-26rcsidglass
1995-03-26new rcsid format. what is the format for shell scriptsglass
1994-12-24add zopen declaration.cgd
1994-10-17don't install zcat (as it's now done by gzip), and excise the zcat sectionscgd
from the man page. add a xref to zcat(1). delete nothing, so that people who want to avoid zcat can.
1994-10-06Fix RCS id format.mycroft
1994-09-19Don't ignore compress -b information.andrew