aboutsummaryrefslogtreecommitdiff
path: root/archival
AgeCommit message (Collapse)Author
2002-10-19Dont use absolute pathname (dunno why i did that), fix tar filename/stdin ↵Glenn L McGrath
problems
2002-10-18Put bac kthe code that handles cases where a '-' wasnt specified prior to ↵Glenn L McGrath
the options.
2002-10-18Fix an obvious thinkoEric Andersen
-Erik
2002-10-10last_patch61 from vodz:Eric Andersen
New complex patch for decrease size devel version. Requires previous patch. Also removed small problems from dutmp and tar applets. Also includes vodz' last_patch61_2: Last patch correcting comment for #endif and more integrated with libbb (very reduce size if used "cat" applet also). Requires last_patch61 for modutils/config.in.
2002-10-06Fix segfault when testing if reaidng from stdin "-"Glenn L McGrath
2002-09-30Vodz' last_patch57:Eric Andersen
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
2002-09-30Patch from Konstantin Isakov <ikm@pisem.net>:Eric Andersen
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.
2002-09-30Save status so we know if to delete compressed fileGlenn L McGrath
2002-09-28Fix for using '-' as the filename when reading from stdinGlenn L McGrath
2002-09-27Fix compress support and prevent a segfaultGlenn L McGrath
2002-09-26Fix simple define problemGlenn L McGrath
2002-09-25Remove files made obsolete by new unarchiving codeGlenn L McGrath
2002-09-25New common unarchive code.Glenn L McGrath
2002-09-17Modified so that it "works" for archs other than i386... arm in particular.Manuel Novoa III
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?
2002-09-16Patch from Matthias Lang <matthias@corelatus.se> to fix gunzipEric Andersen
error handling and prevent gunzip from hanging.
2002-09-15Support for GNU style long filename and linknamesGlenn L McGrath
2002-08-26chmod on the NEW fileGlenn L McGrath
2002-08-24Reorganise, make it just one function, remove -v option it didnt work ↵Glenn L McGrath
properly anyway, dont setvbuf it doesnt make any difference in performance.
2002-08-24Run through indent, use bracesGlenn L McGrath
2002-08-22replace some global const ints with definesGlenn L McGrath
2002-08-22Specify castGlenn L McGrath
2002-08-22Remove duplicate variable definitionGlenn L McGrath
2002-08-22Run through indent, fix commentsGlenn L McGrath
2002-08-22Run through ident, fix commentsGlenn L McGrath
2002-08-22Run through indent, use /* */ style comments, change extern to staticGlenn L McGrath
2002-08-22Run through indentGlenn L McGrath
2002-08-22Honour the USTAR prefix field, this enables a 155 byte path length plus the ↵Glenn L McGrath
normal 100 byte filename. The catch is gnu tar cannot create archives that use the prefix field, you need to use s-tar.
2002-08-21Tar inlining, #if 0 out unused functionAaron Lehmann
2002-08-13Enable support for the old tar header format, enable via menu'sGlenn L McGrath
2002-07-23Added tar -cz support (creating gzipped tar files without a gzip pipe)Robert Griebl
2002-07-19Applied vodz' patches #49 and #50 (with a small correction in runshell.c)Robert Griebl
#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.
2002-07-11Fixup warnings and undefined operations that show up in gcc-3.1Eric Andersen
-Erik
2002-06-23inline many functions that are only called once. saves about 300 bytesAaron Lehmann
on i386. also staticify most functions.
2002-06-23remove cleanUpAndFail, and replace it with exit(). because that's whatAaron Lehmann
it does unless srcMode was set, and srcMode is never set.
2002-06-22Major revamp. I've been trying to clean up the code. the bzerror stuffAaron Lehmann
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.
2002-05-29Patch from Randolfe Averty to fixup package conflict checks, cleanup some ↵Glenn L McGrath
memory leaks and reorganise dependency checking. Some further memory leaks fixed by me.
2002-05-19Support old-style compress (.Z) files via libbb / unzip( ) callsRobert Griebl
(configurable) - When enabled an applet "uncompress" is also made available (oddname to gunzip) [the cvs add for this file got lost somehow...]
2002-05-15Support old-style compress (.Z) files via libbb / unzip( ) callsRobert Griebl
(configurable) - When enabled an applet "uncompress" is also made available (oddname to gunzip)
2002-05-15gunzip'ing many files to stdout works nowRobert Griebl
Fixed a missing initialisation and made a for loop more readable.
2002-05-15Don't delete source file when decompressing to stdoutRobert Griebl
This is the normal GNU gunzip behaviour
2002-04-29* archival/gunzip.c (gunzip_file): New.Matt Kraai
(gunzip_main): Handle no arguments correctly.
2002-04-15* archival/bunzip2.c (bunzip2_main): Do not remove files if writing to standardMatt Kraai
output. * testsuite/bunzip2/bzcat-does-not-remove-compressed-file: New.
2002-04-13Rework per how I did things in version in 0.60.3 so it canEric Andersen
properly uncompress multiple files now. -Erik
2002-04-13Patch from Laurence Anderson <L.D.Anderson@warwick.ac.uk> forEric Andersen
better tape drive support in tar/cpio by using an intervening pipe...
2002-04-13Update some missing copyright noticesEric Andersen
2002-04-12Completely rework the config system so that it no longer annoys me to work onEric Andersen
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
2002-04-06Fix email addrEric Andersen
2002-03-27* archival/bunzip2.c (bunzip2_main): Remove compressed file.Matt Kraai
* testsuite/bunzip2/bunzip2-removes-compressed-file: New.
2002-03-27* archival/bunzip2.c: Include <unistd.h>.Matt Kraai
(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.
2002-03-22* archival/gzip.c (gzip_main): Ensure that the output is a terminal and useMatt Kraai
error_msg to display the error message.