aboutsummaryrefslogtreecommitdiff
path: root/include/unarchive.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tar: optional support for restoring selinux contextJ. Tang2010-03-191-0/+4
| | | | | | | | | | | | | function old new delta get_header_tar 1690 1976 +286 data_extract_all 821 881 +60 .rodata 151446 151503 +57 get_header_cpio 1044 1077 +33 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/0 up/down: 436/0) Total: 436 bytes Signed-off-by: J. Tang <tang@jtang.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ar: add archive creation supportAlexander Shishkin2010-03-151-0/+4
| | | | | | | | | | | | | | | | function old new delta ar_main 184 542 +358 output_ar_header - 166 +166 copy_data - 54 +54 filter_replaceable - 19 +19 get_header_ar 409 414 +5 header_verbose_list_ar 85 88 +3 static.msg_unsupported_err 28 - -28 ------------------------------------------------------------------------------ (add/remove: 3/1 grow/shrink: 3/0 up/down: 605/-28) Total: 577 bytes Signed-off-by: Alexander Shishkin <virtuoso@slind.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randomconfig fixesDenys Vlasenko2010-01-241-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libunarchive: clean up dirty hacks. code shrank as a resultDenys Vlasenko2010-01-061-26/+35
| | | | | | | | | | | | | | | | | | | function old new delta cpio_main 526 539 +13 init_handle 57 58 +1 init_archive_deb_ar 34 35 +1 get_header_ar 408 409 +1 dpkg_main 3900 3901 +1 unpack_package 516 515 -1 rpm_main 1673 1672 -1 tar_main 774 767 -7 get_header_cpio 990 972 -18 data_extract_all 750 727 -23 get_header_tar 1631 1576 -55 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/6 up/down: 17/-105) Total: -88 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: add support for --overwrite. +70 bytes.Denys Vlasenko2009-12-161-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libunarchive: move dpkg-specific things into dpkg.c. 0 byte size differencesDenys Vlasenko2009-12-161-11/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: fix --numeric-owner, --no-same-owner, --no-same-permissions bitsDenys Vlasenko2009-09-171-8/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* rpm2cpio: handle unseekable input correctlyDenys Vlasenko2009-08-281-4/+4
| | | | | | | | | | | | | | function old new delta data_skip 14 20 +6 seek_by_jump 67 72 +5 data_align 81 84 +3 seek_by_read 20 19 -1 skip_header 99 94 -5 rpm2cpio_main 183 177 -6 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/3 up/down: 14/-12) Total: 2 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: mass renaming of USE_XXXX to IF_XXXXDenis Vlasenko2009-04-211-9/+9
| | | | | | and SKIP_XXXX to IF_NOT_XXXX - the second one was especially badly named. It was not skipping anything!
* tar: support for tar --numeric-owner. By Natanael Copa.Denis Vlasenko2009-04-211-0/+1
| | | | | | | | function old new delta tar_longopts 221 237 +16 data_extract_all 692 705 +13 tar_main 690 702 +12
* *: make "pragma GCC visibility push(hidden)" less uglyDenis Vlasenko2009-04-091-8/+4
|
* gunzip: restore mtime. approx +80 bytes of codeDenis Vlasenko2008-11-011-0/+11
| | | | | | rpm: make code more robust lsmod: small code shrink
* *: refactor handling of archived files. "tar f file.tar.lzma" now works too.Denis Vlasenko2008-08-051-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | function old new delta unpack_Z_stream - 1229 +1229 open_zipped - 176 +176 unpack_bz2_stream_prime - 60 +60 tar_main 642 677 +35 find_main 406 418 +12 sv_main 1222 1233 +11 decode_format_string 829 837 +8 cmp_main 641 649 +8 popstring 134 140 +6 filter_accept_list_reassign 120 125 +5 parse_and_put_prompt 800 804 +4 passwd_main 1053 1049 -4 make_new_name_gunzip 119 114 -5 rpm_main 1688 1670 -18 prepare 302 283 -19 xmalloc_open_zipped_read_close 135 61 -74 uncompress 1229 - -1229 ------------------------------------------------------------------------------ (add/remove: 3/1 grow/shrink: 8/5 up/down: 1554/-1349) Total: 205 bytes
* cpio: internalize archive_xread_all_eof. add a few paranoia checksDenis Vlasenko2008-07-121-2/+0
| | | | | | | | | | | | | for corrupted cpio files. modprobe-small: remove stray include route: small code shrink function old new delta get_header_cpio 958 980 +22 archive_xread_all_eof 33 - -33 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 1/0 up/down: 22/-33) Total: -11 bytes
* fix compile failures resulting from last few commitsDenis Vlasenko2008-07-111-1/+1
|
* dpkg_deb: slight code shrinkDenis Vlasenko2008-07-101-1/+3
| | | | | | | | | | | | | | ar: reuse existing ar unpacking code get_header_tar: handle autodetection for tiny .tar.gz files too unarchive.h: do not include CONFIGed out things function old new delta get_header_tar 1521 1534 +13 dpkg_deb_main 400 380 -20 ar_main 260 196 -64 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/2 up/down: 13/-84) Total: -71 bytes
* open_transformer: do not return fd, it does not changeDenis Vlasenko2008-07-101-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | libbb: adopt zipped read from modprobe-small function old new delta getoptscmd 708 713 +5 qgravechar 106 109 +3 huft_build 1165 1168 +3 tr_main 474 472 -2 open_transformer 91 89 -2 evalvar 1376 1374 -2 rpm_main 1691 1688 -3 qrealloc 36 33 -3 get_header_tar_lzma 55 52 -3 get_header_tar_gz 100 97 -3 get_header_tar_bz2 55 52 -3 get_header_tar_Z 89 86 -3 find_main 418 406 -12 prepare 302 283 -19 xmalloc_open_zipped_read_close 161 135 -26 xmalloc_read 248 199 -49 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/13 up/down: 11/-130) Total: -119 bytes
* libunarchive: stop using static data in archivers - archive_handle_tDenis Vlasenko2008-06-281-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | can trivially provide space for that. rpm: code shrink tar: simplify autodetection of bz2/.gz function old new delta static.not_first 1 - -1 static.end 1 - -1 bb_makedev 51 49 -2 static.saved_hardlinks_created 4 - -4 static.saved_hardlinks 4 - -4 longname 4 - -4 linkname 4 - -4 hash_file 251 247 -4 get_header_tar 1528 1521 -7 rpm_main 1711 1697 -14 get_header_cpio 965 944 -21 ------------------------------------------------------------------------------ (add/remove: 0/6 grow/shrink: 0/5 up/down: 0/-66) Total: -66 bytes text data bss dec hex filename 804926 611 6868 812405 c6575 busybox_old 804878 611 6852 812341 c6535 busybox_unstripped
* *: introduce and use FAST_FUNC: regparm on i386, otherwise no-onDenis Vlasenko2008-06-271-39/+39
| | | | | | | text data bss dec hex filename 808035 611 6868 815514 c719a busybox_old 804472 611 6868 811951 c63af busybox_unstripped
* Use intra-DSO calls when we build libbusybox. No-op for normal build.Denis Vlasenko2008-05-091-0/+8
| | | | | | | | | This was Bernhard Fischer' idea. text data bss dec hex filename 773549 7781 9740 791070 c121e busybox.t7/0_lib/libbusybox.so.1.11.0.svn_unstripped 769683 7397 9740 786820 c0184 busybox.t9t/0_lib/libbusybox.so.1.11.0.svn_unstripped
* lpr: add more accurate commentsDenis Vlasenko2008-03-241-1/+1
| | | | | *: trailing whitespace removal
* *: more readable handling of pipe fds. No code changes.Denis Vlasenko2008-02-161-2/+2
|
* random s/short/int/Denis Vlasenko2008-02-161-1/+1
| | | | | | | | | add_cmd 1189 1190 +1 xconnect_ftpdata 118 117 -1 data_align 86 84 -2 process_files 2101 2096 -5 forkexec 1345 1334 -11
* tar: real support for -p. +200 if selected.Denis Vlasenko2008-02-141-0/+4
| | | | | By Natanael Copa <natanael.copa at gmail.com>
* unzip: do not try to read entire compressed stream at once (it can be huge)Denis Vlasenko2008-02-041-1/+1
| | | | | unzip: handle short reads correctly
* open_transformer: do not duplicate "<program> -cf -"Denis Vlasenko2007-11-121-3/+3
| | | | | | | text data bss dec hex filename 677858 738 7236 685832 a7708 busybox_old 677804 738 7236 685778 a76d2 busybox_unstripped
* gunzip: support concatenated gz files.Denis Vlasenko2007-10-051-2/+0
| | | | | | | text data bss dec hex filename 770988 1029 9552 781569 bed01 busybox.t0/busybox 771105 1029 9552 781686 bed76 busybox.t3/busybox
* tar + gzip/bzip2/etc: support NOMMU machines (by Alex Landau ↵Denis Vlasenko2007-09-051-0/+6
| | | | <landau_alex@yahoo.com>)
* do not do utime() on links, it acts on link targets, and we don't want that.Denis Vlasenko2007-06-201-12/+10
| | | | | rename link_name to link_target, less confusing this way.
* rmp: add optional support for bz2 data. +50 bytes of codeDenis Vlasenko2007-06-081-4/+4
|
* delete tons of extra #includesDenis Vlasenko2007-05-311-1/+1
|
* make compressed help code NOMMU- and NOFORK-friendly -Denis Vlasenko2007-04-101-0/+5
| | | | no forking anymore, bunzip2 unpack routine now does all it in memory.
* bunzip2/gunzip/uncompress/unlzma: merge into common code -Denis Vlasenko2007-03-071-1/+1
| | | | fix few corner cases, reduce size by 450 bytes. Update testsuite.
* do not expose internal state of [g]zip unpacker.Denis Vlasenko2007-01-051-8/+7
| | | | fix memory leak in inflate_gunzip.
* extern variable declaration in a .c file is heresy - fixing itDenis Vlasenko2007-01-031-0/+5
|
* tar et al: die if bb_copyfd_size copies less than asked for.Denis Vlasenko2006-12-221-1/+1
| | | | (we have bb_copyfd_exact_size now for that kind of usage)
* attempt to regularize atoi mess.Denis Vlasenko2006-10-081-1/+1
|
* g[un]zip: add support for -v (verbose).Denis Vlasenko2006-10-011-5/+6
| | | | | Add CONFIG_DESKTOP, almost all bloat from this change is hidden under that.
* tar: revert older fix (non-portable), added new one.Denis Vlasenko2006-09-031-0/+1
| | | | | testsuite tar-extracts-all-subdirs now passes.
* - pull from busybox_scratch: r15829:15850Bernhard Reutner-Fischer2006-08-281-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Various fixes, cleanups and shrinkage: saves 952 Bytes: text data bss dec hex filename 1087742 15853 790632 1894227 1ce753 ../busybox/busybox.old 1086790 15853 790632 1893275 1ce39b busybox via: # scripts/bloat-o-meter ../busybox/busybox_unstripped.old busybox_unstripped function old new delta ipcrm_main 756 822 +66 getval - 61 +61 maybe_set_utc - 40 +40 udhcpc_main 2896 2912 +16 md5_hash_block 428 437 +9 opt 8 16 +8 qgravechar 106 110 +4 make_bitmap 292 295 +3 inflate_unzip 2056 2059 +3 add_partition 1412 1414 +2 __parsespent 156 158 +2 qrealloc 41 42 +1 format - 1 +1 catv_main 313 314 +1 watch_main 293 292 -1 varunset 81 80 -1 part 1 - -1 check_if_skip 837 836 -1 start_stop_daemon_main 840 837 -3 create_lost_and_found 175 172 -3 supress_non_delimited_lines 4 - -4 static.l 4 - -4 static.c 5 1 -4 bsd_sum_file 237 233 -4 eval2 338 332 -6 arithmetic_common 166 158 -8 cmpfunc 22 5 -17 cksum_main 294 275 -19 cmp_main 465 439 -26 dd_main 1535 1508 -27 rmmod_main 376 333 -43 cut_file 727 644 -83 ipcs_main 3809 3721 -88 cut_main 722 614 -108 date_main 1443 1263 -180 remove_ids 222 - -222 ------------------------------------------------------------------------------ (add/remove: 3/4 grow/shrink: 11/18 up/down: 217/-853) Total: -636 bytes
* Cleaup read() and write() variants, plus a couple of new functions likeRob Landley2006-07-161-1/+0
| | | | xlseek and fdlength() for the new mkswap.
* - typo: s/compenent/component/gBernhard Reutner-Fischer2006-04-021-3/+6
| | | | add a bit of documentation.
* Patch from Aurelien Jacobs to add unlzma. (A new decompression type,Rob Landley2006-01-201-0/+2
| | | | see www.7-zip.org)
* Add --no-same-owner and --no-same-permissions options to tar.Rob Landley2005-10-271-5/+7
|
* applying fixes from: Paul Fox2005-07-201-0/+1
| | | | | 0000142: unzip enhancements
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-1/+1
|
* As we no longer use function pointers for read in common archiving codeGlenn L McGrath2003-11-211-2/+0
| | | | | | | 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.
* Remove unused functionGlenn L McGrath2003-11-201-1/+0
|
* Move from read_gz to the pipe()+fork() method.Glenn L McGrath2003-11-151-12/+6
| | | | | | | | | 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.
* Use the return value from uncompress_bunzip, fix some typoGlenn L McGrath2003-10-291-2/+2
|