summaryrefslogtreecommitdiff
path: root/archival/libunarchive (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Use safe readGlenn L McGrath2003-11-212-2/+2
|
* Remove unused functionGlenn L McGrath2003-11-202-31/+0
|
* Fix tar-handles-nested-exclude testcaseGlenn L McGrath2003-11-201-0/+8
|
* Dont attempt to unlink directoriesGlenn L McGrath2003-11-201-1/+1
|
* tar -Z, uncompress supportGlenn L McGrath2003-11-183-10/+1
|
* Dont close original file handle, we may need it later.Glenn L McGrath2003-11-181-3/+4
|
* Dont free filename, its needed in the extracted files list.Glenn L McGrath2003-11-171-2/+1
|
* Fix a bug where cpio wouldnt work unless -u was specifiedGlenn L McGrath2003-11-151-10/+8
|
* Move from read_gz to the pipe()+fork() method.Glenn L McGrath2003-11-1511-258/+142
| | | | | | | | | open_transformer(), common code for pipe+fork. Function pointer for read() no longer needed. Allow inflate to be initialised with a specified buffer size to avoid over-reading. Reset static variables in inflate_get_next_window to fix a bug where only the first file in a .zip would be be extracted.
* Fix memory leaksGlenn L McGrath2003-11-151-0/+3
|
* Keep trying to find a good header, if we exit it will cause .tar.gzGlenn L McGrath2003-11-141-1/+1
| | | | files to compute incorrect crc and length for gzip
* Fix build error with tar -jGlenn L McGrath2003-11-141-1/+1
|
* Remove some tar_gz stuff that get dragged inGlenn L McGrath2003-11-141-3/+4
|
* Remove debugging noise.Glenn L McGrath2003-11-141-1/+0
|
* Read in blocks rather than one char at a time, greatly improves speedGlenn L McGrath2003-11-141-4/+23
|
* This appears to be the correct fix to make CONFIG_FEATURE_DEB_TAR_BZ2Eric Andersen2003-11-071-3/+2
| | | | | support compile. Glenn, you may want to verify this. -Erik
* fix commentEric Andersen2003-11-071-1/+1
|
* Fix tar -j supportGlenn L McGrath2003-11-053-23/+43
| | | | | | | | | | | | | | Use the old fork() method of tar compression support, rather than read_bz2.... - (*uncompress)(int in, int out) seems like a more natural interface for compression code. - it might improve performance by seperating the work into one cpu bound and one io bound process. - There is extra code required to do read_[gz|bunzip] since (*uncompress)(int in, int out) will normally be used by the standalone compression applet. There have been problems with this method so if you see a "Short read" error let me know.
* Put back the tar support stubs (and warnings) for now.Eric Andersen2003-10-311-0/+16
|
* Fix stupid typoEric Andersen2003-10-311-1/+1
|
* Add some error messages, use xmalloc instead of mallocGlenn L McGrath2003-10-281-5/+18
|
* Conditionally compile some files.Glenn L McGrath2003-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.
* Another bzip2 update and speedup from Manuel Novoa III, with someEric Andersen2003-10-231-223/+267
| | | | additional changes (primarily lots of comments) from Rob Landley.
* Manuel Novoa III writes:Eric 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
* Rob Landley's new micro-bunzip version 3. Rob writes:Eric 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.
* Fix handling of hardlinks when OLDGNU and GNU extensions arent enabled.Glenn L McGrath2003-09-121-3/+0
|
* Use the typeflag to identify if its a hardlink on OLD and GNU posixGlenn L McGrath2003-09-121-6/+6
| | | | modes, fixes a bug extracting hardlinks to symlinks.
* Marc A. Lehmann writes:Eric 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).
* If a tar entry is a regualr file ending in a '/' then its really aGlenn L McGrath2003-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.
* Dont unlink when testing !Glenn L McGrath2003-08-282-38/+29
| | | | | | | Always preserve creation date Disable the -p option its for modification date Remove some cpio header debugging noise Syncronise file listing behaviour with upstream.
* Change hardlink handling for tar to work the same way as cpioGlenn L McGrath2003-08-142-44/+46
|
* Fix bug when handling debian packages.Glenn L McGrath2003-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.
* Fixup problem unconditionally converting all hard links to symlinks.Eric Andersen2003-07-161-6/+1
|
* Update a bunch of docs. Run a script to update my email addr.Eric Andersen2003-07-144-4/+4
|
* Be certain to not abort prematurely when reading stuff from pipes.Eric Andersen2003-07-052-2/+2
|
* Handle hard links by converting them to symlinksGlenn L McGrath2003-06-121-1/+5
|
* unlink a previous file before its extractedGlenn L McGrath2003-04-211-1/+2
|
* Major coreutils update.Manuel Novoa III2003-03-1918-89/+89
|
* Woops, my gunzip fix broke unzip, these cant be staticGlenn L McGrath2003-02-092-4/+4
|
* Moved to libunarchive/unzip.cGlenn L McGrath2003-02-091-69/+0
|
* Fix endian probelm on PPC, i had different types for an extern variable.Glenn L McGrath2003-02-093-27/+80
|
* Fix long standing bug with old gnu tar files, add a check so tar willGlenn L McGrath2003-01-282-12/+21
| | | | | | 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.
* A cleaner cleanup that avoids passing an off_t to scanfEric Andersen2002-12-111-5/+9
|
* squash a warningEric Andersen2002-12-111-1/+1
|
* rpm applet by Laurence AndersonGlenn L McGrath2002-12-103-1/+187
|
* Move add_to_list from libunarchive to libbb so it can be of more general use ↵Glenn L McGrath2002-12-083-17/+1
| | | | (eg ifupdown). Changed the name to llist_add_to as i plan on adding more llist_ functions as needed (e.g. llist_free).
* Unlink before mkdir, mknod, symlink to overwriteGlenn L McGrath2002-12-041-0/+3
|
* fix warningGlenn L McGrath2002-12-012-2/+2
|
* StyleGlenn L McGrath2002-11-282-316/+298
|
* Add an input buffer (currently 32kB) to speed things up heaps, it still ↵Glenn L McGrath2002-11-243-28/+77
| | | | requires 25% longer to decompress as compared to upstream.