summaryrefslogtreecommitdiff
path: root/archival (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* This is vodz' latest patch. Sorry it took so long...Eric Andersen2001-07-172-20/+12
| | | | | | | | | 1) ping cleanup (compile fix from this patch already applied). 2) traceroute call not spare ntohl() now (and reduce size); 3) Fix for functions not declared static in insmod, ash, vi and mount. 4) a more simple API cmdedit :)) 5) adds "stopped jobs" warning to ash on Ctrl-D and fixes "ignoreeof" option 6) reduce exporting library function index->strchr (traceroute), bzero->memset (syslogd)
* Allow the unarchive() extract_list variable to be NULL, meaning extract allGlenn L McGrath2001-07-142-11/+14
|
* Tolerate fields with no data, e.g. "Depends: "Glenn L McGrath2001-07-141-0/+10
|
* Total rewrite, uses hash tables for speed and low memory use.Glenn L McGrath2001-07-131-679/+1248
|
* Dont setvbuff in here, must be called just after stream is initialised, ↵Glenn L McGrath2001-07-132-6/+0
| | | | glibc tolerates using it later, uclibc doesnt
* Call setvbuf from here isntead of gz_open for compatability with uclibcGlenn L McGrath2001-07-131-0/+3
|
* Move setvbuf calls from gz_open() to calling functions, setvbuf is only ↵Glenn L McGrath2001-07-132-0/+7
| | | | supposed to be called prior to opening the stream, glibc tolerates later use, uclibc doesnt.
* Allow unarchive to redirect stdout (tobe used by dpkg applet)Glenn L McGrath2001-07-112-2/+2
|
* free coniditionally, just to make it play nice with dmalloc which is ↵Glenn L McGrath2001-07-112-4/+12
| | | | incompatable with standard free()
* Unpack the filename not the package nameGlenn L McGrath2001-07-111-2/+2
|
* Read 20 512-byte blocks at a time (like GNU tar).Matt Kraai2001-07-101-3/+3
|
* Minor update to include file orderingEric Andersen2001-07-071-1/+1
|
* Remove a redundant call to mkdir.Matt Kraai2001-07-031-9/+1
|
* Patch from Aaron Lehmann <aaronl@vitelus.com> to scrub a ton ofEric Andersen2001-07-021-1129/+193
| | | | portability junk from gzip.c, making it a zillion times more readable.
* Add some missing includes to kill warnings when building with the defaultManuel Novoa III2001-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.
* Fix a type promotion bug discivered and analyzed by Alan ModraEric Andersen2001-06-272-2/+2
| | | | <amodra@bigpond.net.au>, which caused false checksum errors
* rpm2cpio applet by Laurence AndersonGlenn L McGrath2001-06-261-0/+92
|
* Fix up some warnings that show up on ppcEric Andersen2001-06-251-1/+1
|
* Nore unarchive (and doc) fixes from Laurence AndersonGlenn L McGrath2001-06-242-5/+4
|
* cpio applet, and changes to associated codeGlenn L McGrath2001-06-223-2/+96
|
* comment cleanupTim Riker2001-06-221-1/+1
|
* Rewrote mkdir (and touched lots of things in the process).Matt Kraai2001-06-212-4/+5
|
* Support tar -C, per bug #1176Eric Andersen2001-06-211-2/+12
| | | | -Erik
* Add in (and ignore) tar -p, since we preserver permissions automatically.Eric Andersen2001-06-211-3/+5
| | | | | closes bug #1185 -Erik
* it turs out, there was a nasty tar bug where bb tar would create leading dirsEric Andersen2001-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
* Initialise in_file to stdin, so it wont crash if no source specifiedGlenn L McGrath2001-06-201-2/+2
|
* Changed gz_open to ruturn a streamGlenn L McGrath2001-06-201-1/+1
|
* Reorganise unarchiving functions, more code re-use, only does single pass(no ↵Glenn L McGrath2001-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
* Reorganise archive extraction codeGlenn L McGrath2001-06-133-120/+98
|
* Revert the patch from Konstantin Boldyshev <konst@linuxassembly.org> to neverEric Andersen2001-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
* Fix up some signed char vs int issues that show up on powerpc.Eric Andersen2001-05-241-1/+1
|
* Patch from larry to fix some grammar errors.Eric Andersen2001-05-231-6/+6
|
* Make - read compressed data from stdin (thanks to Marius Groeger).Matt Kraai2001-05-221-1/+1
|
* Correctly remove leading slashes upon extraction (thanks to Marius Groeger).Matt Kraai2001-05-221-1/+1
|
* Remove unused function. If necessary, we can use remove_file instead.Matt Kraai2001-05-171-31/+0
|
* Change 'printf("%s\n", ...)' into 'puts(...)'. Noted and patched in hostname.cMatt Kraai2001-05-162-2/+2
| | | | by Larry Doolittle.
* Do not ever change permissions on existing directories, onlyEric Andersen2001-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
* Per some comments from Lars Kellogg-Stedman <lars@larsshack.org>,Eric Andersen2001-05-071-0/+2
| | | | | | make xreadlink() return NULL on failure, and make sure everyone uses the interface correctly. -Erik
* woops, forgot the break statmentGlenn L McGrath2001-05-071-0/+1
|
* Tolerate -q argument, if -q is passed give a warning and continue rather ↵Glenn L McGrath2001-05-072-2/+6
| | | | than just fail
* Skip headers with empty filenames, rather than stopping.Matt Kraai2001-05-011-1/+1
|
* Made new xreadlink function for libbb and changed applets to use it instead ofMark Whitley2001-04-301-9/+3
| | | | readlink(2).
* Logic reversal for last_char_isGlenn L McGrath2001-04-291-1/+1
|
* Another nice cleanup from Larry. This adds a new last_char_is() function andEric Andersen2001-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
* Move messages.c to libbb. Make each string in messages.c be its own .o file.Eric 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
* Eliminate spurious warning, convert to getopt, and eliminate redundant check.Matt Kraai2001-04-182-29/+23
|
* Fix a number of problems with argument handling.Matt Kraai2001-04-181-49/+29
|
* Eliminate a segfault when called on an existing file with out an extension:Matt Kraai2001-04-181-2/+2
| | | | touch foo && gunzip foo
* Eliminated seeks so that we work correctly on pipes, and removed reliance onMatt Kraai2001-04-182-4/+18
| | | | | undefined evaluation ordering. Thanks to Anthony Towns for explanation and solution.
* Fix zcat/gunzip when reading from stdinGlenn L McGrath2001-04-181-26/+28
|