summaryrefslogtreecommitdiffstats
path: root/usr.bin/gzip
Commit message (Collapse)AuthorAgeFilesLines
* MFC r207247,r207283,207284:delphij2010-05-102-7/+24
| | | | | | | - Add a signal handler for SIGINT which removes output file when necessary. - While I'm there, move unlink_input() slightly down to after closing the output file, in uncompression path. - Language improvements to make the BUGS section easier to read.
* MFC r206387:delphij2010-04-203-13/+14
| | | | | | Diff reduction against NetBSD and add myself to AUTHORS section of the manual page as I wrote the unpack functionality. No actual executable code change verified with md5(1).
* MFC r199066 + 199339:delphij2009-12-021-8/+28
| | | | | Apply a NetBSD fix (revision 1.12) to handle multi-session bzip2 files as created by pbzip2.
* 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