aboutsummaryrefslogtreecommitdiff
path: root/archival (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Major revamp. I've been trying to clean up the code. the bzerror stuffaaronl2002-06-221-562/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | still needs major attention (i.e. removal). Removed references to uninitialized variables like progName, smallMode, noisy, etc. Remove functions and code for handling "small" decompression mode, since it is all unreachable. Remove total_{in,out}* counters - they are never used. Remove panic() function and assert_h and their uses because they are all for "should never happen" circumstances. Replace internal malloc/free wrappers with xmalloc and free. Remove conditional in if(foo)free(foo); situations. Remove bogus if (sizeof(int) != 4) { return BZ_CONFIG_ERROR; } (...etc...) code and code for handling BZ_CONFIG_ERROR. Someone should go through and change the applet to use well-defined types when appropriate - it expects sizeof(short)==2 && sizeof(int)==4. Until this commit these were explicitly checked for, and the applet would exit if these types were not the right size. (I think this is wrong even as an interim solution.) With gcc 3.1 reduces size of binary on i386-linux by about 700 bytes. Lightly tested. git-svn-id: svn://busybox.net/trunk/busybox@4951 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Randolfe Averty to fixup package conflict checks, cleanup some ↵bug12002-05-292-75/+127
| | | | | | | | | memory leaks and reorganise dependency checking. Some further memory leaks fixed by me. git-svn-id: svn://busybox.net/trunk/busybox@4817 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Support old-style compress (.Z) files via libbb / unzip( ) callssandman2002-05-192-0/+626
| | | | | | | | | (configurable) - When enabled an applet "uncompress" is also made available (oddname to gunzip) [the cvs add for this file got lost somehow...] git-svn-id: svn://busybox.net/trunk/busybox@4784 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Support old-style compress (.Z) files via libbb / unzip( ) callssandman2002-05-152-2/+34
| | | | | | | | (configurable) - When enabled an applet "uncompress" is also made available (oddname to gunzip) git-svn-id: svn://busybox.net/trunk/busybox@4778 69ca8d6d-28ef-0310-b511-8ec308f3f277
* gunzip'ing many files to stdout works nowsandman2002-05-151-6/+9
| | | | | | | Fixed a missing initialisation and made a for loop more readable. git-svn-id: svn://busybox.net/trunk/busybox@4777 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Don't delete source file when decompressing to stdoutsandman2002-05-151-1/+2
| | | | | | | This is the normal GNU gunzip behaviour git-svn-id: svn://busybox.net/trunk/busybox@4776 69ca8d6d-28ef-0310-b511-8ec308f3f277
* * archival/gunzip.c (gunzip_file): New.kraai2002-04-291-99/+99
| | | | | | | (gunzip_main): Handle no arguments correctly. git-svn-id: svn://busybox.net/trunk/busybox@4708 69ca8d6d-28ef-0310-b511-8ec308f3f277
* * archival/bunzip2.c (bunzip2_main): Do not remove files if writing to standardkraai2002-04-151-2/+2
| | | | | | | | output. * testsuite/bunzip2/bzcat-does-not-remove-compressed-file: New. git-svn-id: svn://busybox.net/trunk/busybox@4628 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rework per how I did things in version in 0.60.3 so it canandersen2002-04-131-69/+88
| | | | | | | | properly uncompress multiple files now. -Erik git-svn-id: svn://busybox.net/trunk/busybox@4603 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Laurence Anderson <L.D.Anderson@warwick.ac.uk> forandersen2002-04-132-1/+25
| | | | | | | | better tape drive support in tar/cpio by using an intervening pipe... git-svn-id: svn://busybox.net/trunk/busybox@4601 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update some missing copyright noticesandersen2002-04-131-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@4599 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Completely rework the config system so that it no longer annoys me to work onandersen2002-04-124-64/+97
| | | | | | | | | | the busybox development tree. This eliminates the use of recursive make, and once again allows us to run 'make' in a subdirectory with the expected result. And things are now much faster too. Greatly improved IMHO... -Erik git-svn-id: svn://busybox.net/trunk/busybox@4595 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix email addrandersen2002-04-061-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@4547 69ca8d6d-28ef-0310-b511-8ec308f3f277
* * archival/bunzip2.c (bunzip2_main): Remove compressed file.kraai2002-03-271-2/+19
| | | | | | | * testsuite/bunzip2/bunzip2-removes-compressed-file: New. git-svn-id: svn://busybox.net/trunk/busybox@4494 69ca8d6d-28ef-0310-b511-8ec308f3f277
* * archival/bunzip2.c: Include <unistd.h>.kraai2002-03-271-17/+22
| | | | | | | | | | (bunzip2_main): Read data from standard input if FILE argument is `-' or omitted. * include/usage.h (bunzip2_trivial_usage, bunzip2_full_usage): Rewrite. * testsuite/bunzip2/bunzip2-reads-from-standard-input: New. git-svn-id: svn://busybox.net/trunk/busybox@4492 69ca8d6d-28ef-0310-b511-8ec308f3f277
* * archival/gzip.c (gzip_main): Ensure that the output is a terminal and usekraai2002-03-221-2/+2
| | | | | | | error_msg to display the error message. git-svn-id: svn://busybox.net/trunk/busybox@4479 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Reinitialize initial shift register value for on each pass.andersen2002-03-202-2/+6
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@4436 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Parse the include list to writeTarFile rather than argv, fixes a bug where ↵bug12002-02-151-2/+1
| | | | | | tar files wernt being created. git-svn-id: svn://busybox.net/trunk/busybox@4210 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix condition that prevented creation of compressed filesbug12002-02-131-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@4202 69ca8d6d-28ef-0310-b511-8ec308f3f277
* * archival/gzip.c (ifname, ofname): Delete.kraai2002-02-051-67/+62
| | | | | | | | | | | (gzip_main): Handle multiple files. * include/usage.h (gzip_trivial_usage): Allow multiple FILEs. (gzip_full_usage): Ditto. * testsuite/gzip/gzip-accepts-multiple-files: New. * testsuite/gzip/gzip-removes-original-file: New. git-svn-id: svn://busybox.net/trunk/busybox@4191 69ca8d6d-28ef-0310-b511-8ec308f3f277
* * archival/gzip.c (gzip_main): Display usage if given multiple files.kraai2002-02-051-0/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@4188 69ca8d6d-28ef-0310-b511-8ec308f3f277
* * archival/tar.c (tar_main): Remove unused variable.kraai2002-01-081-4/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@4038 69ca8d6d-28ef-0310-b511-8ec308f3f277
* * archival/dpkg.c (create_list): Use chomp.kraai2002-01-022-10/+2
| | | | | | | * archival/tar.c (append_file_list_to_list): Likewise. git-svn-id: svn://busybox.net/trunk/busybox@3993 69ca8d6d-28ef-0310-b511-8ec308f3f277
* unzip applet by Laurence Andersonbug12002-01-028-53/+260
| | | | | | | ---------------------------------------------------------------------- git-svn-id: svn://busybox.net/trunk/busybox@3988 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove `== TRUE' tests and convert `!= TRUE' and `== FALSE' tests to use !.kraai2001-12-205-54/+54
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3925 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Perform clean up only if CONFIG_FEATURE_CLEAN_UP is defined.kraai2001-12-201-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3924 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Write files when extracting an archive from standard input.kraai2001-12-201-16/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3923 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Things like 'tar -c /tmp/*' and 'tar -cO /tmp/*' where the outputandersen2001-12-181-1/+5
| | | | | | | | filename was not explicitly specified were segfaulting. -Erik git-svn-id: svn://busybox.net/trunk/busybox@3898 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More copyright and email addr cleanupsandersen2001-12-062-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3843 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Commit my improvement on Rodney Brown's patch to g(un)zip, decreasingaaronl2001-12-064-79/+75
| | | | | | | binary size. git-svn-id: svn://busybox.net/trunk/busybox@3831 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Simplify unzip(), remove unused checks and unneccessary variablesbug12001-12-052-102/+54
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3830 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Simplify CRC table generationbug12001-12-052-22/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3829 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix some fegfaults and picket fencebug12001-12-051-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3826 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fail gracefully if package depends on a virtual package.bug12001-12-051-2/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3823 69ca8d6d-28ef-0310-b511-8ec308f3f277
* gunzip was incorrectly reporting a failed crc and length (discovered bybug12001-11-292-0/+16
| | | | | | | | Chang, Shu-Hao). The bitbuffer needs to be unwound after decompression, as it was eating into the crc/size field. git-svn-id: svn://busybox.net/trunk/busybox@3815 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix opt type in dpkg (closes: #118975).kraai2001-11-191-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3721 69ca8d6d-28ef-0310-b511-8ec308f3f277
* bzcat and bunzip -c support from Thomas Lundquistbug12001-11-181-4/+34
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3701 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Minor warning cleanupsandersen2001-11-171-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3690 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change strdup calls to xstrdup (patch from Steve Merrifield).kraai2001-11-122-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3666 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Eliminate unused variable warnings.kraai2001-11-121-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3664 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use fopen wrapper.kraai2001-11-121-2/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3663 69ca8d6d-28ef-0310-b511-8ec308f3f277
* config.in features patch from Giulio Orsero <giulioo@pobox.com>andersen2001-11-101-2/+3
| | | | | | | with some minor edits from me git-svn-id: svn://busybox.net/trunk/busybox@3639 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix create list segfaultbug12001-11-031-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3627 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Attempt to fix libc compiling error regarding off_tbug12001-10-271-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3594 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Wrap exclude_file() inside a #ifdef CONFIG_FEATURE_TAR_EXCLUDE blockandersen2001-10-271-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3592 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Menu entry for tar creation supportbug12001-10-251-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3588 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Recovering from my previous commitbug12001-10-257-196/+1371
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3583 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Modify applets to use libunarchivebug12001-10-252-1364/+195
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3582 69ca8d6d-28ef-0310-b511-8ec308f3f277
* *** empty log message ***bug12001-10-257-0/+756
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3581 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add CONFIG_FEATURE_TAR_EXCLUDE support.kraai2001-10-241-1/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3575 69ca8d6d-28ef-0310-b511-8ec308f3f277