aboutsummaryrefslogtreecommitdiff
path: root/archival (follow)
Commit message (Collapse)AuthorAgeFilesLines
* make CONFIG_FEATURE_UNARCHIVE_TAPE common between itar and cpio, patchbug12003-10-291-7/+10
| | | | | | | by Arthur Othieno git-svn-id: svn://busybox.net/trunk/busybox@7721 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use the return value from uncompress_bunzip, fix some typobug12003-10-291-8/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7719 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add some error messages, use xmalloc instead of mallocbug12003-10-281-5/+18
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7718 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a logic error, the old bunzip code returned non-zero for success,bug12003-10-281-1/+1
| | | | | | | new code returns 0 for success. git-svn-id: svn://busybox.net/trunk/busybox@7717 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Conditionally compile some files.bug12003-10-281-20/+23
| | | | | | | | | | This hides a bug related to the new bunzip code in the tar and dpkg[-deb] applets. It will also reduce compile time a little as some unused files wont be compiled. git-svn-id: svn://busybox.net/trunk/busybox@7716 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Another bzip2 update and speedup from Manuel Novoa III, with someandersen2003-10-231-223/+267
| | | | | | | additional changes (primarily lots of comments) from Rob Landley. git-svn-id: svn://busybox.net/trunk/busybox@7708 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Andreas Mohr writes:andersen2003-10-221-10/+10
| | | | | | | | | | | | | | the busybox menuconfig triggered my "inacceptable number of spelling mistakes" upper level, so I decided to make a patch ;-) I also improved some wording to describe some things in a better way. Many thanks for an incredible piece of software! Andreas Mohr, random OSS developer git-svn-id: svn://busybox.net/trunk/busybox@7692 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Manuel Novoa III writes:andersen2003-10-181-22/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | Hello Rob, Here's a patch to your bunzip-3.c file. Nice work btw. One minor bug fix... checking for error return when read()ing. Some size/performance optimizations as well. One instance of memset() seems unnecssary. You might want to take a look. Anyway, on my machine, decompressing linux-2.6.0-test7.tar.bz2 to /dev/null gave the following times: bunzip-3.c bzcat (system) bunzip-3.c (patched) real 0m24.420s 0m22.725s 0m20.701s user 0m23.930s 0m22.170s 0m20.180s sys 0m0.070s 0m0.080s 0m0.140s Size of the patched version is comparable (slightly larger or smaller depending on compiler flags). Manuel git-svn-id: svn://busybox.net/trunk/busybox@7665 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rob Landley's new micro-bunzip version 3. Rob writes:andersen2003-10-181-1592/+465
| | | | | | | | | | | | | | | | | | | | | | | | | | | The API for using partial writes, as described in my last message, sucked. So here's a patch against my last patch that changes things so that write_bunzip_data calls read_bunzip_data itself behind the scenes whenever necessary. So usage is now just start_bunzip(), write_bunzip_data() until it returns a negative number, and then the cleanup at the end of uncompressStream. It adds 32 bytes to the executable, but it should allow the caller (tar) to be simplified enough to compensate. Total -Os stripped exe size now 6856 bytes. Rob P.S. I attached the whole C file so you don't have to keep incremental patches straight if you don't want to. :) P.S. In the version I'm banging on now, I've simplified the license to just LGPL. I read the OSL a bit more closely and the patent termination clause would have bit IBM in their counter-suit of SCO if the code in question had been OSL instead of GPL, and I've decided I just don't want to beta-test legal code right now. git-svn-id: svn://busybox.net/trunk/busybox@7664 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix -C option when creating tar files.bug12003-10-021-30/+37
| | | | | | | | | | | Need to chdir after the tar file is opened, so make common tar filename parsing and send the file descriptor rather than filename to writeTarFile. Modify the verboseFlag operation to determine wether to display on stderr or stdout at display time, simpler than doing it in tar_main. git-svn-id: svn://busybox.net/trunk/busybox@7589 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Do not shadow the global name 'accept'andersen2003-09-151-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7522 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix handling of hardlinks when OLDGNU and GNU extensions arent enabled.bug12003-09-121-3/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7485 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use the typeflag to identify if its a hardlink on OLD and GNU posixbug12003-09-121-6/+6
| | | | | | | modes, fixes a bug extracting hardlinks to symlinks. git-svn-id: svn://busybox.net/trunk/busybox@7484 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Marc A. Lehmann writes:andersen2003-09-111-1/+1
| | | | | | | | | | | | | | | | | | The tar -x command in busybox does not restore the file mode correctly. The reason is most probably this code in archival/libunarachive/data_extract_all.c: chmod(file_header->name, file_header->mode); chown(file_header->name, file_header->uid, file_header->gid); chown clears the set*id bits (on current versions of linux :). Flipping the order around fixes the problem. (tested with 1.00pre3 from cvs). git-svn-id: svn://busybox.net/trunk/busybox@7463 69ca8d6d-28ef-0310-b511-8ec308f3f277
* If a tar entry is a regualr file ending in a '/' then its really abug12003-09-091-5/+5
| | | | | | | | | | | | | | | directory. From http://www.gnu.org/manual/tar/html_node/tar_123.html REGTYPE AREGTYPE These flags represent a regular file. In order to be compatible with older versions of tar, a typeflag value of AREGTYPE should be silently recognized as a regular file. New archives should be created using REGTYPE. Also, for backward compatibility, tar treats a regular file whose name ends with a slash as a directory. git-svn-id: svn://busybox.net/trunk/busybox@7453 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Dont unlink when testing !bug12003-08-283-43/+44
| | | | | | | | | | Always preserve creation date Disable the -p option its for modification date Remove some cpio header debugging noise Syncronise file listing behaviour with upstream. git-svn-id: svn://busybox.net/trunk/busybox@7272 69ca8d6d-28ef-0310-b511-8ec308f3f277
* trivial doc fixandersen2003-08-221-2/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7252 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change hardlink handling for tar to work the same way as cpiobug12003-08-142-44/+46
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7208 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix bug when handling debian packages.bug12003-07-311-3/+5
| | | | | | | | | If we read the contents of compressed files within the ar archive, e.g. control.tar.gz, then file position gets all out of whack, so it has to be reset before reading thenext header. git-svn-id: svn://busybox.net/trunk/busybox@7146 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixup problem unconditionally converting all hard links to symlinks.andersen2003-07-161-6/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7074 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update a bunch of docs. Run a script to update my email addr.andersen2003-07-149-11/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7061 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Thomas Cameron:andersen2003-07-141-28/+28
| | | | | | | | | | | | | | Hello all, This patch adds more "Help" text to the config system. Almost all applets now have a help entry. Also, I cleaned up the spacing of the existing text so that things are consistent. This patch is against this morning's CVS. Thomas Cameron CEI Systems, Inc. git-svn-id: svn://busybox.net/trunk/busybox@7058 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Be certain to not abort prematurely when reading stuff from pipes.andersen2003-07-053-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7045 69ca8d6d-28ef-0310-b511-8ec308f3f277
* As noted by Thomas Eckert:andersen2003-07-051-2/+9
| | | | | | | | | | | | | | | | | | | bb-tar "cjf" does not create a valid tbz2-archive -- if fact the result is a plain tar-file (no compression) -- but does not warn about the unrecognized parameter combination "cj" (bb does not have bzip2-compression yet, right?). to fix this I have added an error message stating this does not work. He also reported cosmetic: versose "-v" does not show any output when used with "create" which I have now fixed as well. -Erik git-svn-id: svn://busybox.net/trunk/busybox@7043 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Kent Robotti adding a bunch of needed docs!andersen2003-07-051-2/+2
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@7038 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Glenn McGrath (bug1) isaway from my email till the 17th, but caught me on IRC.andersen2003-07-051-1/+1
| | | | | | | | He took a look into the recent reports of tar problems, and found an obvious typo in last_patch91 from vodz which converted tar to use bb_getopt_ulflags. git-svn-id: svn://busybox.net/trunk/busybox@7036 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Kent Robotti adding a bunch of menuconfig helpandersen2003-07-031-12/+27
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7029 69ca8d6d-28ef-0310-b511-8ec308f3f277
* last_patch91 from vodz to convert tar to use bb_getopt_ulflagsandersen2003-06-261-60/+56
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6982 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Save a few bytes by using bb_getopt_ulflags and a few other minorbug12003-06-221-49/+31
| | | | | | | improvments git-svn-id: svn://busybox.net/trunk/busybox@6963 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Handle hard links by converting them to symlinksbug12003-06-121-1/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6910 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Handle -O preceding -x.kraai2003-05-181-1/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6845 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Always preserve datebug12003-04-261-2/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6817 69ca8d6d-28ef-0310-b511-8ec308f3f277
* unlink a previous file before its extractedbug12003-04-211-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6805 69ca8d6d-28ef-0310-b511-8ec308f3f277
* unlink() an existing file, before opening it, simply truncating canbug12003-04-211-1/+2
| | | | | | | cause nasty problems if overwriting glibc, spotted by waldi. git-svn-id: svn://busybox.net/trunk/busybox@6803 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major coreutils update.mjn32003-03-1930-248/+246
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6751 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Woops, my gunzip fix broke unzip, these cant be staticbug12003-02-092-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6548 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Moved to libunarchive/unzip.cbug12003-02-091-69/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6541 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix endian probelm on PPC, i had different types for an extern variable.bug12003-02-093-27/+80
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6540 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix long standing bug with old gnu tar files, add a check so tar willbug12003-01-283-19/+31
| | | | | | | | | complain "unknown file type" if it tries to extract an oldgnu tar file and TAR_FEATURE_OLDGNU_COMPATABILITY sint defined. Print a warning if unisupported gnu extensions are encountered. git-svn-id: svn://busybox.net/trunk/busybox@6488 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A cleaner cleanup that avoids passing an off_t to scanfandersen2002-12-111-5/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6179 69ca8d6d-28ef-0310-b511-8ec308f3f277
* squash a warningandersen2002-12-111-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6174 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use libbb/get_line_from_file instead of getlinebug12002-12-111-4/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6156 69ca8d6d-28ef-0310-b511-8ec308f3f277
* include busybox after libc includesbug12002-12-101-2/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6151 69ca8d6d-28ef-0310-b511-8ec308f3f277
* rpm applet by Laurence Andersonbug12002-12-107-161/+547
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6150 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Move add_to_list from libunarchive to libbb so it can be of more general use ↵bug12002-12-089-36/+20
| | | | | | (eg ifupdown). Changed the name to llist_add_to as i plan on adding more llist_ functions as needed (e.g. llist_free). git-svn-id: svn://busybox.net/trunk/busybox@6132 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add some help descriptionsbug12002-12-061-10/+44
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6122 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Kill the now obsolete docs/Configure.help file, and move all existingandersen2002-12-051-2/+22
| | | | | | | | help texts into their respective Config.in file. -Erik git-svn-id: svn://busybox.net/trunk/busybox@6107 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Yet another major rework of the BusyBox config system, using the considerablyandersen2002-12-052-45/+158
| | | | | | | | | | | modified Kbuild system I put into uClibc. With this, there should be no more need to modify Rules.mak since I've moved all the interesting options into the config system. I think I've got everything updated, but you never know, I may have made some mistakes, so watch closely. -Erik git-svn-id: svn://busybox.net/trunk/busybox@6102 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Unlink before mkdir, mknod, symlink to overwritebug12002-12-041-0/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6099 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Move compare_string_array to libbbbug12002-12-021-13/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6073 69ca8d6d-28ef-0310-b511-8ec308f3f277