aboutsummaryrefslogtreecommitdiff
path: root/archival (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix segfault when testing if reaidng from stdin "-"bug12002-10-061-1/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5624 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Vodz' last_patch57:andersen2002-09-301-5/+3
| | | | | | | | | | | | | | | | | | Hi, Erik. my_getpw(uid/gid) and applets used it have problem: if username for uid not found, applets can`t detect it (but code pessent). Also "%8ld " format is bad: spaces not required (applets have self format or spec format (tar applet) and overflow for "id" applet...) This problem also pressent in stable version. Patch for unstable in attach. --w vodz git-svn-id: svn://busybox.net/trunk/busybox@5613 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Konstantin Isakov <ikm@pisem.net>:andersen2002-09-301-3/+4
| | | | | | | | | | | In most cases, dirname returns the same argument it was given, so this code works nice, but there's one special case: when the name contains no dirname, it returns "." (stored statically in the body of itself), and we get a segfault in attempt to free() it. This patch fixes this problem. git-svn-id: svn://busybox.net/trunk/busybox@5609 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Save status so we know if to delete compressed filebug12002-09-301-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5604 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix for using '-' as the filename when reading from stdinbug12002-09-281-9/+7
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5601 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix compress support and prevent a segfaultbug12002-09-279-49/+59
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5599 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix simple define problembug12002-09-261-2/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5597 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove files made obsolete by new unarchiving codebug12002-09-254-655/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5590 69ca8d6d-28ef-0310-b511-8ec308f3f277
* New common unarchive code.bug12002-09-2531-1386/+1969
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5589 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Modified so that it "works" for archs other than i386... arm in particular.mjn32002-09-171-47/+108
| | | | | | | | | Also tried to clean up the logic a little, and ensure that read errors or invalid archives resulted in error returns. This could use a lot more work... Volunteers? git-svn-id: svn://busybox.net/trunk/busybox@5548 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Matthias Lang <matthias@corelatus.se> to fix gunzipandersen2002-09-162-52/+126
| | | | | | | error handling and prevent gunzip from hanging. git-svn-id: svn://busybox.net/trunk/busybox@5503 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Support for GNU style long filename and linknamesbug12002-09-152-10/+40
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5486 69ca8d6d-28ef-0310-b511-8ec308f3f277
* chmod on the NEW filebug12002-08-261-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5391 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Reorganise, make it just one function, remove -v option it didnt work ↵bug12002-08-241-114/+87
| | | | | | properly anyway, dont setvbuf it doesnt make any difference in performance. git-svn-id: svn://busybox.net/trunk/busybox@5376 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Run through indent, use bracesbug12002-08-241-82/+90
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5375 69ca8d6d-28ef-0310-b511-8ec308f3f277
* replace some global const ints with definesbug12002-08-222-8/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5347 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Specify castbug12002-08-221-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5346 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove duplicate variable definitionbug12002-08-221-1/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5345 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Run through indent, fix commentsbug12002-08-222-746/+764
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5342 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Run through ident, fix commentsbug12002-08-221-49/+49
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5338 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Run through indent, use /* */ style comments, change extern to staticbug12002-08-221-286/+260
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5334 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Run through indentbug12002-08-221-241/+238
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5332 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Honour the USTAR prefix field, this enables a 155 byte path length plus the ↵bug12002-08-221-2/+6
| | | | | | | | | normal 100 byte filename. The catch is gnu tar cannot create archives that use the prefix field, you need to use s-tar. git-svn-id: svn://busybox.net/trunk/busybox@5328 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tar inlining, #if 0 out unused functionaaronl2002-08-211-5/+7
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5325 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Enable support for the old tar header format, enable via menu'sbug12002-08-132-5/+38
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5260 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added tar -cz support (creating gzipped tar files without a gzip pipe)sandman2002-07-232-26/+95
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5077 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Applied vodz' patches #49 and #50 (with a small correction in runshell.c)sandman2002-07-193-7/+3
| | | | | | | | | | | | #49: I found one memory overflow and memory leak in "ln" applet. Last patch reduced also 54 bytes. ;) #50: I found bug in loginutils/Makefile.in. New patch have also new function to libbb and aplied this to applets and other cosmetic changes. git-svn-id: svn://busybox.net/trunk/busybox@5066 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixup warnings and undefined operations that show up in gcc-3.1andersen2002-07-115-5/+10
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@5042 69ca8d6d-28ef-0310-b511-8ec308f3f277
* inline many functions that are only called once. saves about 300 bytesaaronl2002-06-231-10/+10
| | | | | | | on i386. also staticify most functions. git-svn-id: svn://busybox.net/trunk/busybox@4970 69ca8d6d-28ef-0310-b511-8ec308f3f277
* remove cleanUpAndFail, and replace it with exit(). because that's whataaronl2002-06-231-22/+3
| | | | | | | it does unless srcMode was set, and srcMode is never set. git-svn-id: svn://busybox.net/trunk/busybox@4968 69ca8d6d-28ef-0310-b511-8ec308f3f277
* 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