aboutsummaryrefslogtreecommitdiff
path: root/archival (follow)
Commit message (Collapse)AuthorAgeFilesLines
* s/u_int/uint/gandersen2004-01-302-17/+17
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8376 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add the -h, --dereference option for archive creation.bug12004-01-251-5/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8344 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Arthur Othieno, clarify common options between dpkg and dpkg-debbug12004-01-171-20/+23
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8306 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use bb_getopt_ulflags, save 100 bytes and strict argument checking.bug12004-01-071-44/+49
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8263 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use bb_getopt_ulflags, save 150 bytes.bug12004-01-051-28/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8259 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use bb_getopt_ulflags, simplify some logic, saves some bytes.bug12004-01-051-40/+29
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8258 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix usage with libraries, skip symbol table.bug12004-01-041-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8257 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use bb_getopt_ulflags, saves some space, better argument checking.bug12004-01-041-70/+32
| | | | | | | Remove ar specific extraction code, always use common extraction code. git-svn-id: svn://busybox.net/trunk/busybox@8256 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Isolate code better for unused options, config option to enable longbug12003-12-262-57/+138
| | | | | | | options, add some conditions to the tar tests in testsuite. git-svn-id: svn://busybox.net/trunk/busybox@8182 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a bug of mine where extracting files to stdout would extract tobug12003-12-221-1/+1
| | | | | | | much, modified patch from Bastian Blank git-svn-id: svn://busybox.net/trunk/busybox@8159 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Don't hose up perms for files that happen to have symlinksandersen2003-12-211-2/+4
| | | | | | | | in the tarball that point to them. -Erik git-svn-id: svn://busybox.net/trunk/busybox@8151 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a compile error when only using ar, patch by Paul van Goolbug12003-12-051-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8053 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Ian Campbell, fix or'ed dependencies and handle virtualbug12003-11-281-79/+237
| | | | | | | dependencies. git-svn-id: svn://busybox.net/trunk/busybox@8009 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix tar hard linksbug12003-11-272-5/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8005 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Important bugfixes from Ian Campbell.bug12003-11-261-26/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | init_archive_deb_data() We want to filter for data.tar.* in the AR file not the TAR file, else we get nothing. all_control_list() Make the 'extensions' array of control file names a global so it can be used in unpack_package as well. Name the global all_control_files. Don't hard code the length of all_control_files but instead used sizeof. unpack_package() Only unpack the control files we are interested in (from all_control_files). Extract the data.tar.gz into / rather than the current directory. dpkg_main() Configure packages in a second pass so all the packages being installed are unpacked before configuring. Some purely cosmetic changes: header update list of differences since two of them are no longer true. The .control file is no longer stored as a result of this patch -- it was redundant since the info is in status. New packages appear to be added to the end of the status file now rather than the start. remove_package() Make message printing optional, so we can avoid a redundant message when replacing/upgrading a package. When we do print stuff then include the version number. purge_package() Print "Purging xxx (yyy) ..." message like the other actions. configure_package() Add "..." to "Setting up" message to be consistent with other actions. git-svn-id: svn://busybox.net/trunk/busybox@8004 69ca8d6d-28ef-0310-b511-8ec308f3f277
* As we no longer use function pointers for read in common archiving codebug12003-11-2111-114/+11
| | | | | | | | | | archive_xread can be replaced with bb_full_read, and archive_copy_file with bb_copyfd* bb_copyfd is split into two functions bb_copyfd_size and bb_copyfd_eof, they share a common backend. git-svn-id: svn://busybox.net/trunk/busybox@7984 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use safe readbug12003-11-212-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7983 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove unused functionbug12003-11-202-31/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7975 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix tar-handles-nested-exclude testcasebug12003-11-202-0/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7961 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Check at least one context is specifiedbug12003-11-201-0/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7958 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Check there are files to add the archive before removing a specifiedbug12003-11-201-5/+4
| | | | | | | tar file. git-svn-id: svn://busybox.net/trunk/busybox@7957 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Dont attempt to unlink directoriesbug12003-11-201-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7956 69ca8d6d-28ef-0310-b511-8ec308f3f277
* tar -Z, uncompress supportbug12003-11-185-11/+37
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7942 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Dont close original file handle, we may need it later.bug12003-11-181-3/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7941 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make unlink old files default behaviour and add a new option -k tobug12003-11-181-19/+23
| | | | | | | prevent overwritting existing files git-svn-id: svn://busybox.net/trunk/busybox@7940 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Dont free filename, its needed in the extracted files list.bug12003-11-171-2/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7931 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a bug where cpio wouldnt work unless -u was specifiedbug12003-11-151-10/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7918 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Move from read_gz to the pipe()+fork() method.bug12003-11-1515-272/+150
| | | | | | | | | | | | 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. git-svn-id: svn://busybox.net/trunk/busybox@7917 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix memory leaksbug12003-11-151-0/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7916 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Keep trying to find a good header, if we exit it will cause .tar.gzbug12003-11-141-1/+1
| | | | | | | files to compute incorrect crc and length for gzip git-svn-id: svn://busybox.net/trunk/busybox@7914 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Catch unsupported featuresbug12003-11-141-7/+15
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7913 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix build error with tar -jbug12003-11-141-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7910 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove some tar_gz stuff that get dragged inbug12003-11-141-3/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7909 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove debugging noise.bug12003-11-141-1/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7908 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Read in blocks rather than one char at a time, greatly improves speedbug12003-11-141-4/+23
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7907 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Vladimir N. Oleynik (vodz) writes:andersen2003-11-141-4/+1
| | | | | | | | | | | | | | | Hi Glenn. I analysed BSS size gzip applet and found may be mistake: updcrc() checking if (crc_table_empty) but not resetted this var. This do make slow gzip applet ;-) --w vodz git-svn-id: svn://busybox.net/trunk/busybox@7901 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This appears to be the correct fix to make CONFIG_FEATURE_DEB_TAR_BZ2andersen2003-11-071-3/+2
| | | | | | | | support compile. Glenn, you may want to verify this. -Erik git-svn-id: svn://busybox.net/trunk/busybox@7848 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix commentandersen2003-11-071-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7847 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix tar -j supportbug12003-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. git-svn-id: svn://busybox.net/trunk/busybox@7800 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Put back the tar support stubs (and warnings) for now.andersen2003-10-311-0/+16
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7734 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix stupid typoandersen2003-10-311-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7729 69ca8d6d-28ef-0310-b511-8ec308f3f277
* 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