aboutsummaryrefslogtreecommitdiff
path: root/archival (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Allow unarchive to redirect stdout (tobe used by dpkg applet)bug12001-07-112-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3070 69ca8d6d-28ef-0310-b511-8ec308f3f277
* free coniditionally, just to make it play nice with dmalloc which is ↵bug12001-07-112-4/+12
| | | | | | incompatable with standard free() git-svn-id: svn://busybox.net/trunk/busybox@3063 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Unpack the filename not the package namebug12001-07-111-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3059 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Read 20 512-byte blocks at a time (like GNU tar).kraai2001-07-101-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3050 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Minor update to include file orderingandersen2001-07-071-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3033 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove a redundant call to mkdir.kraai2001-07-031-9/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2988 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Aaron Lehmann <aaronl@vitelus.com> to scrub a ton ofandersen2001-07-021-1129/+193
| | | | | | | portability junk from gzip.c, making it a zillion times more readable. git-svn-id: svn://busybox.net/trunk/busybox@2970 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add some missing includes to kill warnings when building with the defaultmjn32001-06-292-0/+2
| | | | | | | | | | Config.h and using gcc's -fno-builtin. There are probably other files with the similar problems. Also, if building against uClibc, don't include asm/unistd.h in syscalls.c and module_syscalls.c. git-svn-id: svn://busybox.net/trunk/busybox@2950 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a type promotion bug discivered and analyzed by Alan Modraandersen2001-06-272-2/+2
| | | | | | | <amodra@bigpond.net.au>, which caused false checksum errors git-svn-id: svn://busybox.net/trunk/busybox@2917 69ca8d6d-28ef-0310-b511-8ec308f3f277
* rpm2cpio applet by Laurence Andersonbug12001-06-261-0/+92
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2902 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix up some warnings that show up on ppcandersen2001-06-251-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2898 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Nore unarchive (and doc) fixes from Laurence Andersonbug12001-06-242-5/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2894 69ca8d6d-28ef-0310-b511-8ec308f3f277
* cpio applet, and changes to associated codebug12001-06-223-2/+96
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2887 69ca8d6d-28ef-0310-b511-8ec308f3f277
* comment cleanuptimr2001-06-221-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2877 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rewrote mkdir (and touched lots of things in the process).kraai2001-06-212-4/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2873 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Support tar -C, per bug #1176andersen2001-06-211-2/+12
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2872 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add in (and ignore) tar -p, since we preserver permissions automatically.andersen2001-06-211-3/+5
| | | | | | | | closes bug #1185 -Erik git-svn-id: svn://busybox.net/trunk/busybox@2870 69ca8d6d-28ef-0310-b511-8ec308f3f277
* it turs out, there was a nasty tar bug where bb tar would create leading dirsandersen2001-06-201-8/+0
| | | | | | | | | | with mode 0777 in all cases due to usask issues. Thanks to Matt Kraai for noticing and spotting the culprit. This makes bb tar behave just like GNU tar once again. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2866 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Initialise in_file to stdin, so it wont crash if no source specifiedbug12001-06-201-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2865 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Changed gz_open to ruturn a streambug12001-06-201-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2863 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Reorganise unarchiving functions, more code re-use, only does single pass(no ↵bug12001-06-202-22/+22
| | | | | | | | | more linked lists), basis for supporting a cpio (and cheaper untar) applet, but cpio applet isnt included in this. It effects ar, dpkg-deb applets only git-svn-id: svn://busybox.net/trunk/busybox@2862 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Reorganise archive extraction codebug12001-06-133-120/+98
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2823 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Revert the patch from Konstantin Boldyshev <konst@linuxassembly.org> to neverandersen2001-06-041-7/+2
| | | | | | | | | | change permissions on existing directories. This behavior is contrary to SUSv2 and contrary to GNU tar. Thanks to Matt Kraai for pointing this out. I should have been much more careful about accepting such a patch. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2789 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix up some signed char vs int issues that show up on powerpc.andersen2001-05-241-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2719 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from larry to fix some grammar errors.andersen2001-05-231-6/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2715 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make - read compressed data from stdin (thanks to Marius Groeger).kraai2001-05-221-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2697 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Correctly remove leading slashes upon extraction (thanks to Marius Groeger).kraai2001-05-221-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2696 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove unused function. If necessary, we can use remove_file instead.kraai2001-05-171-31/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2666 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change 'printf("%s\n", ...)' into 'puts(...)'. Noted and patched in hostname.ckraai2001-05-162-2/+2
| | | | | | | by Larry Doolittle. git-svn-id: svn://busybox.net/trunk/busybox@2653 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Do not ever change permissions on existing directories, onlyandersen2001-05-131-2/+6
| | | | | | | | | | on directories we created while extracting a tarball. Fix based on bug report and patch from Konstantin Boldyshev <konst@linuxassembly.org> -Erik git-svn-id: svn://busybox.net/trunk/busybox@2632 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Per some comments from Lars Kellogg-Stedman <lars@larsshack.org>,andersen2001-05-071-0/+2
| | | | | | | | | make xreadlink() return NULL on failure, and make sure everyone uses the interface correctly. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2551 69ca8d6d-28ef-0310-b511-8ec308f3f277
* woops, forgot the break statmentbug12001-05-071-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2548 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tolerate -q argument, if -q is passed give a warning and continue rather ↵bug12001-05-072-2/+6
| | | | | | than just fail git-svn-id: svn://busybox.net/trunk/busybox@2547 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Skip headers with empty filenames, rather than stopping.kraai2001-05-011-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2508 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Made new xreadlink function for libbb and changed applets to use it instead ofmarkw2001-04-301-9/+3
| | | | | | | readlink(2). git-svn-id: svn://busybox.net/trunk/busybox@2495 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Logic reversal for last_char_isbug12001-04-291-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2488 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Another nice cleanup from Larry. This adds a new last_char_is() function andandersen2001-04-262-2/+2
| | | | | | | | | uses it to avoid possible buffer underruns whn strlen is zero, and avoid the possible space-hogging inline of strlen() in several cases. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2450 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Move messages.c to libbb. Make each string in messages.c be its own .o file.andersen2001-04-255-19/+0
| | | | | | | | | | This way, we can new get rid of all that tedious #define rubbish we used to need to enable specific messages. This way is enormously simpler, and as a bonus also ends up saving us 96 bytes. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2430 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Eliminate spurious warning, convert to getopt, and eliminate redundant check.kraai2001-04-182-29/+23
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2369 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a number of problems with argument handling.kraai2001-04-181-49/+29
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2368 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Eliminate a segfault when called on an existing file with out an extension:kraai2001-04-181-2/+2
| | | | | | | touch foo && gunzip foo git-svn-id: svn://busybox.net/trunk/busybox@2367 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Eliminated seeks so that we work correctly on pipes, and removed reliance onkraai2001-04-182-4/+18
| | | | | | | | undefined evaluation ordering. Thanks to Anthony Towns for explanation and solution. git-svn-id: svn://busybox.net/trunk/busybox@2366 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix zcat/gunzip when reading from stdinbug12001-04-181-26/+28
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2365 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Write full status filebug12001-04-161-19/+76
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2351 69ca8d6d-28ef-0310-b511-8ec308f3f277
* dpkg improvements, use full package struct, avoid extracting to tmp dir, ↵bug12001-04-162-197/+193
| | | | | | | | | rename variable. deb_extract, untar and dpkg_deb modified to make the above possible git-svn-id: svn://busybox.net/trunk/busybox@2350 69ca8d6d-28ef-0310-b511-8ec308f3f277
* dpkg-deb -f and partial -I commands, adds 600 bytesbug12001-04-131-21/+27
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2342 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rename variable that shadows globalbug12001-04-121-16/+16
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2335 69ca8d6d-28ef-0310-b511-8ec308f3f277
* New dpkg-deb function -t, stands for --fsys-tarfilebug12001-04-121-1/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2333 69ca8d6d-28ef-0310-b511-8ec308f3f277
* dpkg-deb -c works nowbug12001-04-121-6/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2331 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix dpkg-deb, enum's are coolbug12001-04-121-18/+17
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2330 69ca8d6d-28ef-0310-b511-8ec308f3f277