aboutsummaryrefslogtreecommitdiff
path: root/archival (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Apply post-1.18.2 fixes, bump version to 1.18.31_18_3Denys Vlasenko2011-02-081-2/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* apply post-1.18.1 patches, bump version to 1.18.21_18_2Denys Vlasenko2011-01-163-9/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* rename archival/libunarchive -> archival/libarchive; move bz/ into itDenys Vlasenko2010-11-0366-49/+49
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: move lzo compressor code to archival/libunarchive/. No code changesDenys Vlasenko2010-11-039-73/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace fixDenys Vlasenko2010-11-011-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* decompress_bunzip2: reinstate erroneously deleted RETVAL_SHORT_WRITEDenys Vlasenko2010-11-011-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* decompress_bunzip2: code shrink ~5 bytesDenys Vlasenko2010-10-301-12/+13
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* decompress_bunzip2: code shrink ~10 bytesDenys Vlasenko2010-10-301-74/+99
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* decompress_bunzip2: add profiling data to comment. no code changesDenys Vlasenko2010-10-291-0/+11
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* decompress_bunzip2: relieve register pressure in hot function read_bunzipDenys Vlasenko2010-10-291-7/+13
| | | | | | | | function old new delta unpack_bz2_stream 318 329 +11 read_bunzip 268 262 -6 Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* decompress_bunzip2: keep bd->writeCRC in CPU reg in the hot loopDenys Vlasenko2010-10-291-21/+28
| | | | | | -5 bytes on 64-bit, +7 bytes on 32-bit. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* decompress_bunzip2: code shrinkDenys Vlasenko2010-10-291-44/+67
| | | | | | | | | | | function old new delta get_next_block 1828 1827 -1 get_bits 164 156 -8 read_bunzip 304 261 -43 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-52) Total: -52 bytes Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* whitespace cleanupDenys Vlasenko2010-10-296-26/+26
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* decompress_bunzip2: handle concatenated .bz2 filesDenys Vlasenko2010-10-281-25/+49
| | | | | | | | | | function old new delta unpack_bz2_stream 207 307 +100 start_bunzip 199 209 +10 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 110/0) Total: 110 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: whitespace fixesDenys Vlasenko2010-10-283-5/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: introduce and use common crc32 routineDenys Vlasenko2010-10-274-42/+15
| | | | | | | | | | | | | | | | | | function old new delta crc32_block_endian1 - 37 +37 crc32_block_endian0 - 34 +34 global_crc32_table - 8 +8 file_read 82 87 +5 gzip_main 211 214 +3 xz_crc32 40 35 -5 crc32_table 8 - -8 calculate_gunzip_crc 54 34 -20 lzo_crc32 54 25 -29 cksum_main 298 211 -87 ------------------------------------------------------------------------------ (add/remove: 3/1 grow/shrink: 2/4 up/down: 87/-149) Total: -62 bytes Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* *: 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>