summaryrefslogtreecommitdiff
path: root/archival
Commit message (Collapse)AuthorAgeFilesLines
* *: replace xopen3 with xopen where makes senseDenys Vlasenko2010-10-181-1/+1
| | | | | | | | | | function old new delta uniq_main 421 416 -5 sort_main 803 798 -5 patch_main 2051 2046 -5 cpio_main 547 542 -5 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cpio: avoid 'not created: newer or same age file exists' message for dirsPascal Bellard2010-10-181-1/+3
| | | | | Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: pass md5/shaN context pointer as 1st arg, not lastDenys Vlasenko2010-10-161-2/+2
| | | | | | | | | function old new delta md5_hash_block 458 459 +1 filter_rename_config 252 250 -2 md5_crypt 591 587 -4 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tweak help textDenys Vlasenko2010-10-091-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* made 3 license strings to follow the usual form ("or later" bit is not changed!)Denys Vlasenko2010-09-061-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* lzop: fix misordered "v=NULL; free(v)", small code shrinkDenys Vlasenko2010-09-041-15/+22
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* libbb: add xfstat functionDenys Vlasenko2010-08-312-4/+2
| | | | | | | | | | | | | | | | function old new delta xfstat - 25 +25 mkfs_ext2_main 2421 2423 +2 mkfs_reiser_main 1197 1194 -3 next 312 307 -5 ar_main 533 522 -11 mkfs_minix_main 2938 2924 -14 mkfs_vfat_main 1511 1495 -16 writeTarFile 272 255 -17 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/6 up/down: 27/-66) Total: -39 bytes Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* bbconfig: add COMPRESS_BBCONFIG optionDenys Vlasenko2010-08-291-0/+1
| | | | | | | | | | | function old new delta bbconfig_config_bz2 - 4905 +4905 bbconfig_main 13 70 +57 bbconfig_config 21811 - -21811 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 1/0 up/down: 4962/-21811) Total: -16849 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* typo fixes in config help textDenys Vlasenko2010-08-291-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: make GNU licensing statement forms more regularDenys Vlasenko2010-08-1640-49/+49
| | | | | | | This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: trailing empty lines removedDenys Vlasenko2010-07-261-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: more empty lines removed. no code changesDenys Vlasenko2010-07-261-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: mass cosmetic removal of extra empty lines. no code changesDenys Vlasenko2010-07-262-2/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tweak defconfigDenys Vlasenko2010-07-161-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove unzip doc: we don't have 100% proof it's ok to distributeDenys Vlasenko2010-07-101-0/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace fixesDenys Vlasenko2010-07-061-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randomconfig fixesDenys Vlasenko2010-07-052-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: introduce and use xfork() and xvfork()Pascal Bellard2010-07-043-20/+5
| | | | | | | | | | | | | | | | function old new delta launch_helper 170 169 -1 setup_heredoc 312 302 -10 handle_dir_common 367 354 -13 expand_vars_to_list 2456 2443 -13 open_transformer 89 74 -15 data_extract_to_command 439 423 -16 do_ipaddr 1406 1389 -17 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/7 up/down: 0/-85) Total: -85 bytes Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove some dead assignments, add a TODO commentDenys Vlasenko2010-07-041-0/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* consolidate xz format comment. no code changesDenys Vlasenko2010-07-011-2/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* xz compression detection: avoid the need to seekDenys Vlasenko2010-07-013-3/+14
| | | | | | | | | | | | | function old new delta unpack_unxz 12 67 +55 unpack_xz_stream 2357 2373 +16 xmalloc_read 197 199 +2 setup_unzip_on_fd 118 99 -19 rpm2cpio_main 222 203 -19 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/2 up/down: 73/-38) Total: 35 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bzip2 decompression: simple code shrinkDenys Vlasenko2010-06-302-6/+9
| | | | | | | | function old new delta unpack_bz2_stream_prime 60 55 -5 get_header_tar 1508 1496 -12 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: s/"/bin/sh"/DEFAULT_SHELL, run_shell() API fix, remove unneeded strdupLadislav Michl2010-06-271-2/+2
| | | | | | | | | | function old new delta run_shell 157 166 +9 su_main 477 470 -7 sulogin_main 515 503 -12 Signed-off-by: Ladislav Michl <Ladislav.Michl@seznam.cz> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: make typical extraction less memory-hungryDenys Vlasenko2010-06-261-3/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: tar-related cleanups: move struct to unarchive.h; move help to tar.cDenys Vlasenko2010-06-262-72/+75
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: fix --to-command wrt short writesDenys Vlasenko2010-06-261-1/+1
| | | | | | | | | | | | function old new delta bb_copyfd_exact_size 51 98 +47 bb_full_fd_action 362 394 +32 get_header_tar 1546 1558 +12 data_extract_to_command 430 439 +9 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/0 up/down: 100/0) Total: 100 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix breakage in compressed file detectionDenys Vlasenko2010-06-261-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: optional support for --to-commandLadislav Michl2010-06-254-0/+159
| | | | | | | | | | | | | | | | function old new delta data_extract_to_command - 430 +430 dec2env - 44 +44 tar_main 778 819 +41 str2env - 37 +37 tar_var - 32 +32 xputenv - 22 +22 tar_longopts 257 270 +13 ------------------------------------------------------------------------------ (add/remove: 6/0 grow/shrink: 2/0 up/down: 619/0) Total: 619 bytes Signed-off-by: Ladislav Michl <Ladislav.Michl@seznam.cz> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* decompress_unxz: use common stringDenys Vlasenko2010-06-211-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* unxz: update from XZ embedded gitDenys Vlasenko2010-06-205-179/+270
| | | | | | | | | | | | | | | function old new delta rc_reset - 21 +21 unpack_xz_stream 2342 2357 +15 lzma_reset 102 64 -38 lzma_len 506 443 -63 xz_dec_lzma2_run 1438 1374 -64 xz_dec_reset 73 - -73 lzma_main 2517 2183 -334 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 1/4 up/down: 36/-572) Total: -536 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cosmetics on top of Dan's patchesDenys Vlasenko2010-06-191-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* A few minor portability improvementsDan Fandrich2010-06-191-0/+2
| | | | | Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Improve unzip's handling of stream ZIP filesDan Fandrich2010-06-181-4/+9
| | | | | | | | | | | Search harder for the ZIP magic numbers at the end of a file by checking 16 KiB from the end instead of just 1 KiB. ZIP files with long comments (such as certain cryptographically signed files) or those sitting in a wrapper could have more than 1 KiB of data after the magic numbers, so they couldn't be read. Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* data_extract_all: do not chmod symlink. Closes 2053Denys Vlasenko2010-06-181-17/+14
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: add INSERTs to *.src files where appropriateDenys Vlasenko2010-06-083-0/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dpkg: add support for lzma compressionPascal Bellard2010-06-071-3/+6
| | | | | Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* pipe_progress: make it independent of printf machineryDenys Vlasenko2010-06-061-1/+1
| | | | | | | | | | | | | function old new delta bb_putchar_stderr - 24 +24 ParseField 494 471 -23 progress_meter 212 188 -24 xargs_main 888 842 -46 pipe_progress_main 151 105 -46 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 0/4 up/down: 24/-139) Total: -115 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove defconfig. Now "make defconfig" simply uses defaults from Config.inDenys Vlasenko2010-06-061-32/+32
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* make it possible to keep usage texts in .c filesDenys Vlasenko2010-06-061-0/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* make it possible to have include/applets.h-esque entries in .c filesDenys Vlasenko2010-06-061-0/+2
| | | | | | As an example, bunzip2 and bzcat is changed to use it. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mass renaming Kbuild -> Kbuild.src, Config.in -> Config.srcDenys Vlasenko2010-06-043-0/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: simplify checks for gz/bz2/xz magicDenys Vlasenko2010-06-021-7/+12
| | | | | | | | | | | function old new delta send_tree 360 355 -5 rpm2cpio_main 249 220 -29 setup_unzip_on_fd 150 118 -32 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-66) Total: -66 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: better string sharingDenys Vlasenko2010-06-023-4/+4
| | | | | | | | text data bss dec hex filename 849427 441 7556 857424 d1550 busybox_old 849355 441 7556 857352 d1508 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* decompress_unxz: allocate permanent crc32 table _fisrt_Denys Vlasenko2010-06-011-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* deinline two big functionsDenys Vlasenko2010-06-011-1/+1
| | | | | | | | | | | | function old new delta xz_dec_lzma2_run - 1483 +1483 decode_one_format - 715 +715 decode_format_string 840 98 -742 unpack_xz_stream 4014 2377 -1637 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 0/2 up/down: 2198/-2379) Total: -181 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* decompress_unxz: newer version, one which can unpack SHA-256 protected filesDenys Vlasenko2010-06-017-68/+154
| | | | | | | | | | | | | | function old new delta check_sizes - 16 +16 crc32_table - 4 +4 index_update 47 40 -7 crc32_validate 110 93 -17 dec_vli 197 165 -32 unpack_xz_stream 4284 4014 -270 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 0/4 up/down: 20/-326) Total: -306 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* archival/*: shrink by reusing sufficiently similar functionsDenys Vlasenko2010-05-314-55/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta append_ext - 16 +16 unxz_main 77 83 +6 unlzma_main 77 83 +6 uncompress_main 42 48 +6 gzip_main 184 190 +6 bzip2_main 114 120 +6 bunzip2_main 61 67 +6 bbunpack 469 475 +6 send_tree 355 360 +5 lzop_main 89 92 +3 gunzip_main 61 64 +3 make_new_name_lzop 84 82 -2 make_new_name_gunzip 114 112 -2 make_new_name_unxz 14 - -14 make_new_name_unlzma 14 - -14 make_new_name_uncompress 14 - -14 make_new_name_bunzip2 14 - -14 make_new_name_gzip 17 - -17 make_new_name_bzip2 17 - -17 ------------------------------------------------------------------------------ (add/remove: 1/6 grow/shrink: 10/2 up/down: 69/-94) Total: -25 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* rpm2cpio: teach it to understand xz formatDenys Vlasenko2010-05-301-11/+24
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* unxz: remove debugging. no code changesDenys Vlasenko2010-05-304-33/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: teach tar et. al. to understand .xz by heartDenys Vlasenko2010-05-302-5/+6
| | | | | | | | | | | | | | function old new delta unpack_xz_stream - 4126 +4126 setup_unzip_on_fd 80 150 +70 open_zipped 113 131 +18 unpack_unxz 5 12 +7 send_tree 360 353 -7 unpack_xz_stream_stdin 3953 - -3953 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 3/1 up/down: 4221/-3960) Total: 261 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>