summaryrefslogtreecommitdiffstats
path: root/usr.bin/gzip
Commit message (Collapse)AuthorAgeFilesLines
* MFC: xz 5.2.2.delphij2015-12-221-2/+2
| | | | Relnotes: yes
* MFC r290024,290073:delphij2015-11-092-5/+12
| | | | | | | | | | | 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 r281500,281540,281626:delphij2015-04-272-12/+25
| | | | | | Sync with NetBSD: - Mention xz(1) in gzip(1). - Strip away path from header name when decompressing.
* MFC r272777,r272779,r272780,r272781,r272782,r272783,r272784,r272787,r272788:ngie2015-01-012-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r272777: Integrate usr.sbin/nmtree/tests from NetBSD into atf/kyua In collaboration with: pho Sponsored by: EMC / Isilon Storage Division r272779: Integrate usr.sbin/basename/tests from NetBSD into atf/kyua In collaboration with: pho Sponsored by: EMC / Isilon Storage Division r272780: Integrate usr.bin/cmp/tests from NetBSD into atf/kyua In collaboration with: sjg Sponsored by: EMC / Isilon Storage Division r272781: Integrate usr.bin/dirname/tests from NetBSD into atf/kyua In collaboration with: pho, sjg Sponsored by: EMC / Isilon Storage Division r272782: Integrate bin/sleep/tests from NetBSD into atf/kyua Sponsored by: EMC / Isilon Storage Division r272783: Integrate usr.bin/cut/tests from NetBSD into atf/kyua Sponsored by: EMC / Isilon Storage Division r272784: Integrate usr.bin/grep/tests from NetBSD into atf/kyua Sponsored by: EMC / Isilon Storage Division r272787: Integrate usr.bin/diff/tests from NetBSD into atf/kyua at gnu/usr.bin/diff/tests Sponsored by: EMC / Isilon Storage Division r272788: Integrate usr.bin/gzip/tests from NetBSD into atf/kyua Sponsored by: EMC / Isilon Storage Division
* MFC r273507: Sync with NetBSD.delphij2014-11-085-17/+41
|
* MFC r267887:delphij2014-07-111-1/+1
| | | | | | Correct buffer size. Submitted by: Sascha Wildner <swildner dragonflybsd org>
* More -Wmissing-variable-declarations fixes.ed2012-10-191-4/+3
| | | | | | | | | | | | | | | | In addition to adding `static' where possible: - bin/date: Move `retval' into extern.h to make it visible to date.c. - bin/ed: Move globally used variables into ed.h. - sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings. - usr.bin/calendar: Remove unneeded variables. - usr.bin/chat: Make `line' local instead of global. - usr.bin/elfdump: Comment out unneeded function. - usr.bin/rlogin: Use _Noreturn instead of __dead2. - usr.bin/tset: Pull `Ospeed' into extern.h. - usr.sbin/mfiutil: Put global variables in mfiutil.h. - usr.sbin/pkg: Remove unused `os_corres'. - usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'.
* Fix style nit: don't use leading zero for dates in .Ddeadler2012-06-051-1/+1
| | | | | | Prompted by: brueffer Approved by: brueffer MFC after: 3 days
* According to the NetBSD foundation [1]:delphij2011-10-161-7/+0
| | | | | | | | | | | Third parties are encouraged to change the license on any files which have a 4-clause license contributed to the NetBSD Foundation to a 2-clause license. We would also encourage you to inform us about these files, so that we can continue to track the many places in which NetBSD is used. http://www.netbsd.org/about/redistribution.html#why2clause [1] Requested by: joel@
* Incorporate recent changes from NetBSD. Most notable change is the additiondelphij2011-10-104-33/+233
| | | | | | of support of decompressing xz files. Obtained from: NetBSD
* Sync RCS id with NetBSD, this was intentionally omitted from the advisorydelphij2011-09-281-1/+1
| | | | | | in order to reduce patchset size. MFC after: 3 days
* Fix handling of corrupt compress(1)ed data. [11:04]bz2011-09-281-12/+19
| | | | | | | | | | 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
* Fix a regression introduced with previous changeset: if output is stdout,delphij2011-05-251-1/+2
| | | | do not check for symbolic link.
* Match symbolic link handling behavior with GNU gzip, bzip2 and xz:delphij2011-05-232-5/+5
| | | | | | | | When we are operating on a symbolic link pointing to an existing file, bail out by default, but go ahead if -f is specified. Submitted by: arundel MFC after: 2 weeks
* Diff reduction against NetBSD. The most notable change is to zdiff(1) todelphij2011-05-235-63/+128
| | | | | | handle more file formats including bzip2 and xz. MFC after: 2 weeks
* Update manpage to remove CRT reference.gjb2011-02-071-2/+2
| | | | | | | | PR: 154441 Submitted by: Ben Haga (bhaga of absoludicrous com) Suggestion by: pluknet Approved by: keramida (mentor) MFC after: 3 days
* Correct some typos in comments, no functional changes.bcr2010-10-163-9/+9
|
* In the past gunzip(1) write()'s after each inflate return. This isdelphij2010-09-231-0/+2
| | | | | | | | | | | | | | not optimal from a performance standpoint since the write buffer is not necessarily be filled up when the inflate rountine reached the end of input buffer and it's not the end of file. This problem gets uncovered by trying to pipe gunzip -c output to a GEOM device directly, which enforces the writes be multiple of sector size. Sponsored by: iXsystems, Inc. Reported by: jpaetzel MFC after: 2 weeks
* Check return value of dup(), it could be -1 when the system is runningdelphij2010-08-191-1/+8
| | | | | | | | out of file descriptors for instance. Found with: Coverity Prevent(tm) CID: 6084 MFC after: 1 month
* Several style fixes as prompted by bde@.delphij2010-06-101-28/+22
| | | | | While I'm there, loosen the st_nlink check and fix grammar for 1 extra links.
* Follow up revision 208888 with purely ident changes.delphij2010-06-071-6/+6
| | | | MFC after: 1 week
* Correct a bug in gzip(1): make sure that initialize isb with fstat() ondelphij2010-06-071-3/+9
| | | | | | | | input file before using it. PR: bin/147275 Submitted by: thomas MFC after: 1 week
* Use _exit(2) system call directly instead of using exit(3) in signaldelphij2010-04-271-1/+1
| | | | | | | | handler, as the latter is not guaranteed to be signal safe, and we do not really care about flushing the stream during SIGINT. Suggested by: Maxim Konovalov <maxim.konovalov gmail com> MFC after: 13 days
* Language improvements to make the BUGS section easier to read.delphij2010-04-271-3/+3
| | | | | Reviewed by: Alexander Best <alexbestms wwu de> MFC after: 13 days
* Add a signal handler for SIGINT which removes output file when necessary.delphij2010-04-261-4/+21
| | | | | | | While I'm there, move unlink_input() slightly down to after closing the output file, in uncompression path. MFC after: 2 weeks
* Diff reduction against NetBSD and add myself to AUTHORS section of thedelphij2010-04-073-13/+14
| | | | | manual page as I wrote the unpack functionality. No actual executable code change verified with md5(1).
* Change all our own code to use st_*tim instead of st_*timespec.ed2010-03-281-2/+2
| | | | Also remove some local patches to diff(1) which are now unneeded.
* Build usr.bin/ with WARNS=6 by default.ed2010-01-021-1/+0
| | | | Also add some missing $FreeBSD$ to keep svn happy.
* We should distinguish between a real truncated case and EOF afterdelphij2009-11-161-3/+14
| | | | | | | | | | | BZ_STREAM_END triggered re-init. Do it by introducing a new flag to represent the 'cold' case after bzip2 state is reinitialized. This fixes regression reported on -current@ as well as another one I found during twiddling with gzip. Reported by: swell.k gmail.com MFC after: 1 week
* Apply a NetBSD fix (revision 1.12) to handle multi-session bzip2 filesdelphij2009-11-091-5/+14
| | | | | | | as created by pbzip2. Submitted by: mrg (NetBSD.org) MFC after: 1 week
* Correct a stack underflow in gzip:delphij2009-07-311-1/+5
| | | | | | | | | | | | | | - Limit suffix to be no more than 30 bytes long. This matches GNU behavior. - Correct usage of memcpy(). Note that this commit only corrects the stack underflow issue, we still need some other fixes to cover other edges. [1] Reported by: Ron Jude <ronj wytheville org> Discussed with: Matthew Green (original NetBSD gzip author), Eygene Ryabinkin <rea-fbsd codelabs ru> [1] Approved by: re (kib)
* Sync with NetBSD:delphij2009-06-243-10/+10
| | | | | | | | | | - gzip -n does not store timestamp; [1] - Reduce diff against NetBSD by moving some casts in our local versions. PR: bin/134955 Obtained from: NetBSD MFC after: 1 month
* Add support for uncompressing pack(1)'ed files. Pack(1) is a program founddelphij2009-06-212-1/+359
| | | | | | | | | | | | in some commercial Unix systems, which utilizes Huffman minimum redundancy code tree to compress files. This implementation supports the "new" pack format only, just like GNU gzip did. Thanks for oliver@'s archive set which I can test against, and Mingyan Guo for providing helpful review of my code. PR: bin/109567 MFC after: 1 month
* Two fixes for SMALL case when compiling with WARNS=6:delphij2009-06-191-1/+4
| | | | | | | - Reduce scope where return value can be referenced. - Add a dummy access to timestamp to silence warning. Submitted by: Mingyan Guo <guomingyan gmail com>
* Mark functions as __dead2 in order to help the LLVM static checkercperciva2008-08-041-2/+2
| | | | | | understand which code paths aren't possible. Reported by: edwin
* Sync with NetBSD's license changes.delphij2008-07-232-10/+4
|
* Reflect the fact that we actually have NetBSD revision 1.3.delphij2008-06-301-1/+1
|
* Remove clause 3 and 4 of NetBSD license.delphij2008-06-301-8/+1
| | | | Obtained from: NetBSD
* Make it clear that gzcat expects each argument to be separate files.delphij2008-06-301-1/+13
| | | | | | PR: docs/123010 Submitted by: Andrew Wright <andrewhw ieee org> MFC after: 2 weeks
* Teach gunzip that .tbz and .tbz2 uncompress to .tar, in a manner similar torwatson2008-03-091-0/+2
| | | | | | | | its existing understanding that .tgz uncompresses to .tar. MFC after: 3 days PR: 121519 Submitted by: Ighighi <ighighi at gmail.com>
* When gzipping to a target file, only set the source file flags on therwatson2008-03-091-4/+4
| | | | | | | | | target file after the timestamp has been set; otherwise setting the timestamp will fail if the flags don't permit it (i.e., uchg). MFC after: 1 week PR: 120208 Submitted by: Ighighi <ighighi at gmail.com>
* Fix a few obvious errors in the znew(1) script.yar2008-02-091-4/+3
| | | | | PR: bin/120249 Submitted by: Jaakko Heinonen <see the PR for email>
* - Simulate GNU gzip(1) behavior where full filename isdelphij2007-07-121-7/+7
| | | | | | | | | being output in verbose mode when doing recursive[1]. - Use better representation of S: PR: bin/114470 Submitted by: Ighighi <ighighi gmail com> [1] Approved by: re (hrs)
* Mention 'k' option of gunzip.delphij2007-06-061-2/+2
| | | | Pointed out by: ighighi gmail.com
* Add a '-k' flag which is similar with its bzip2(1) counterpart,delphij2007-05-282-4/+15
| | | | | | | | meaning that the user wants the input file to be left intact. Feature request: Ighighi <ighighi gmail.com> PR: bin/103006 MFC after: 1 month
* Mention a limitation that was inherted from RFC1952, makingdelphij2007-03-161-1/+9
| | | | | | | | it impossible to obtain correct file size from a file that is larger than 4GB before compression. PR: bin/110329 MFC after: 1 week
* Do not install zgrep, or links to zgrep, since zgrep is provided bysimon2007-02-103-228/+4
| | | | | | src/gnu/usr.bin/grep. Reviewed by: delphij
* Fix typo.delphij2007-01-311-1/+1
| | | | Obtained from: DragonFly
* Replace the GNU gzip with a slightly modified NetBSD gzip. Thedelphij2007-01-2617-0/+3988
NetBSD version is a feature-to-feature re-implementation of GNU gzip using the freely-redistributable zlib and this version is expected to be mostly bug-to-bug compatible with the GNU implementation. - Because this is a piece of mature code and we want to make changes so it is added directly rather than importing to src/contrib. - Connect newly added code to src/usr.bin/ and rescue/rescue build. - Disconnect the GNU gzip code from build for now, they will be eventually removed completely. - Provide two new src.conf(5) knobs, WITHOUT_BZIP2_SUPPORT and WITHOUT_BZIP2. Tested by: kris (full exp-7 pointyhat build) Approved by: core (importing a 4-clause BSD licensed file) Approved by: re (adding new utility during -HEAD code slush)
OpenPOWER on IntegriCloud