aboutsummaryrefslogtreecommitdiff
path: root/archival (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* unpackers: check errors from close() tooDenys Vlasenko2009-10-051-5/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: more portability fixes by Dan FandrichDenys Vlasenko2009-09-231-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: accept spaces at the end of header fields (compat)Denys Vlasenko2009-09-231-11/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ar: fix long filenames handling (bug 611)Denys Vlasenko2009-09-201-37/+50
| | | | | | | | function old new delta get_header_ar 493 528 +35 read_num - 25 +25 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: do chown, not lchown to restore mode (compat)Denys Vlasenko2009-09-171-2/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: fix --numeric-owner, --no-same-owner, --no-same-permissions bitsDenys Vlasenko2009-09-176-37/+42
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* use PACKED macro insted of open-coding GCC-ismDenys Vlasenko2009-09-162-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* unlzma: fixed speedup/shrink by Pascal Bellard (pascal.bellard AT ads-lu.com)Denys Vlasenko2009-09-152-146/+108
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Merge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busyboxDenys Vlasenko2009-09-071-29/+118
|\
| * unzip: more compat if DESKTOP=yDenys Vlasenko2009-09-061-29/+118
| | | | | | | | | | | | | | | | | | | | | | | | function old new delta DESKTOP off: unzip_main 1648 1629 -19 DESKTOP=y: unzip_main 1939 2197 +258 Without this, midnight commander can't display .zip files Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Revert "unlzma: speedup, by Pascal Bellard (pascal.bellard AT ads-lu.com)"Denys Vlasenko2009-09-062-60/+98
|/ | | | | | https://bugs.busybox.net/show_bug.cgi?id=599 This reverts commit 9ac3dc764a78b51fe8fdcd1b4682850de098733b.
* documentation and typo fixes. By Dan Fandrich (dan AT coneharvesters.com)Denys Vlasenko2009-09-061-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove some GNUisms. by Dan Fandrich (dan AT coneharvesters.com)Denys Vlasenko2009-09-061-1/+1
| | | | | | | | | | function old new delta logdirs_reopen 1310 1308 -2 read_line_input 4757 4753 -4 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-6) Total: -6 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libunarchive: fix a bug where mode and time is no longer restoredDenys Vlasenko2009-08-301-1/+1
| | | | | | Introduced by me in 1.15.x. Found by Rob Landley. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* rpm2cpio: code shrinkDenys Vlasenko2009-08-281-11/+10
| | | | | | | | | | function old new delta skip_header 94 92 -2 rpm2cpio_main 177 174 -3 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-5) Total: -5 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* rpm2cpio: handle unseekable input correctlyDenys Vlasenko2009-08-285-15/+18
| | | | | | | | | | | | | | 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>
* rpm2cpio: handle bz2 too; code shrinkPascal Bellard2009-08-281-29/+48
| | | | | | | | | | | function old new delta skip_header 142 99 -43 rpm2cpio_main 321 183 -138 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-181) Total: -181 bytes Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dpkg: delete postrm script after it's run, not before. closes bug 449Denys Vlasenko2009-07-251-8/+13
| | | | | | | function old new delta purge_package 220 252 +32 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* unzip: try lseek before resorting to readingStefani Seibold2009-07-251-1/+2
| | | | | | | function old new delta unzip_skip 16 43 +27 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove trailing whitespaceDenys Vlasenko2009-07-152-4/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: handle 256-base encoding in mtimeDenys Vlasenko2009-07-081-3/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* df: fix "df /"Denys Vlasenko2009-07-051-2/+2
| | | | | | | | | | | | | | | | | | | also, clean up mount checks in mkfs/fsck. function old new delta find_mount_point 243 261 +18 sha1_process_block64 497 510 +13 find_main 436 444 +8 display_speed 85 90 +5 df_main 795 793 -2 parse_command 1463 1460 -3 static.ignored_mounts 8 - -8 mkfs_minix_main 2962 2937 -25 fsck_minix_main 3065 2970 -95 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 4/4 up/down: 44/-133) Total: -89 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* updates for supporting Linux kernel build and initrd utilitiesDenys Vlasenko2009-06-261-4/+19
| | | | | | | | | cpio: --verbose, --quiet, --to-stdout test: make 64-bit math enable-able for hush too dnsdomainname: alias to hostname -d hostname: support --fqdn, --domain, --file Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getopt: FEATURE_GETOPT_LONG for -l; rename GETOPT_LONG to LONG_OPTSDenys Vlasenko2009-06-192-2/+2
| | | | | Signed-off-by: Colin Watson <cjwatson@ubuntu.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tweak Config texts and some broken English elsewhereDenys Vlasenko2009-06-181-5/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randomconfig fixesDenys Vlasenko2009-06-091-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* only build common libarchive objs when neededMike Frysinger2009-05-281-1/+7
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* gzip: fix gzip with many files corrupting some files after firstDenys Vlasenko2009-05-181-38/+32
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libunarchive: fix build failure with !FEATURE_TAR_UNAME_GNAMEMike Frysinger2009-05-051-5/+4
| | | | | | | | | | | | | | We can't use C if(...) with ENABLE_FEATURE_TAR_UNAME_GNAME because it relies on conditional members in the file_header_t structure: archival/libunarchive/data_extract_all.c: In function ‘data_extract_all’: archival/libunarchive/data_extract_all.c:123: error: ‘file_header_t’ has no member named ‘uname’ archival/libunarchive/data_extract_all.c:124: error: ‘file_header_t’ has no member named ‘uname’ archival/libunarchive/data_extract_all.c:127: error: ‘file_header_t’ has no member named ‘gname’ archival/libunarchive/data_extract_all.c:128: error: ‘file_header_t’ has no member named ‘gname’ make[1]: *** [archival/libunarchive/data_extract_all.o] Error 1 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* lzop: new applet. Busyboxed by Alain Knaff. +7700 bytes.Denis Vlasenko2009-04-2910-0/+2962
|
* unlzma: speedup, by Pascal Bellard (pascal.bellard AT ads-lu.com)Denis Vlasenko2009-04-252-98/+60
| | | | | | | | | | | | | | | | | | | LZMA_FAST off: 10% faster and: function old new delta rc_is_bit_1 - 92 +92 rc_do_normalize 45 81 +36 rc_update_bit_1 25 - -25 rc_update_bit_0 30 - -30 rc_is_bit_0_helper 38 - -38 rc_get_bit 60 17 -43 rc_read 48 - -48 unpack_lzma_stream 1768 1517 -251 ------------------------------------------------------------------------------ (add/remove: 1/4 grow/shrink: 1/2 up/down: 128/-435) Total: -307 bytes LZMA_FAST on: 14% faster and: unpack_lzma_stream 2301 2737 +436 rc_get_bit 106 - -106
* switch_root: improve behavior on error; improve help textDenis Vlasenko2009-04-212-2/+2
| | | | | *: make "can't execute '%s'" message uniform
* *: mass renaming of USE_XXXX to IF_XXXXDenis Vlasenko2009-04-2112-80/+80
| | | | | | 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-212-14/+22
| | | | | | | | function old new delta tar_longopts 221 237 +16 data_extract_all 692 705 +13 tar_main 690 702 +12
* trailing whitespace removalDenis Vlasenko2009-04-011-1/+1
|
* cpio: more compat: -0 and -L optionsDenis Vlasenko2009-03-201-82/+92
| | | | | | function old new delta cpio_main 1417 1473 +56
* Compatibility fixes:Denis Vlasenko2009-03-202-16/+72
| | | | | | | | | grep: support -z find: support --mindepth together +45 bytes cpio: support -p (configurable, +230 bytes) libbb: tweaks for cpio
* tar: make FEATURE_TAR_AUTODETECT work with DESKTOP off too.Denis Vlasenko2009-03-131-2/+2
|
* unzip: fix thinko with le/be conv and size (closes bug 129)Denis Vlasenko2009-02-261-1/+1
| | | | | awk: make "struct global" hack more robust wrt alignment (closes bug 131)
* tar: stop changing net tarfile's mode, GNU tar doesn't do itDenis Vlasenko2009-01-201-2/+0
|
* header_verbose_list: show off_t size, not cast to (unsigned)Denis Vlasenko2008-12-123-4/+76
| | | | | | | | | get_header_tar: support GNU tar's "base256" encoding function old new delta get_header_tar 1536 1600 +64 header_verbose_list 242 257 +15
* optimize 16- and 32-bit movesDenis Vlasenko2008-12-081-3/+2
| | | | | | | | | | | | | | | | function old new delta udhcpd_main 1239 1257 +18 udhcp_add_simple_option 93 92 -1 buffer_read_le_u32 19 18 -1 unpack_gz_stream_with_info 526 520 -6 dnsd_main 1470 1463 -7 udhcp_run_script 1208 1186 -22 send_ACK 255 229 -26 arping_main 1661 1623 -38 send_offer 470 428 -42 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/8 up/down: 18/-143) Total: -125 bytes
* dpkg: better and shorter code to compare versionsDenis Vlasenko2008-11-201-68/+59
| | | | | | | | | | | | | (taken from "official" dpkg). By Eugene T. Bordenkircher (eugebo AT gmail.com) function old new delta order - 48 +48 test_version 273 276 +3 version_compare_part 396 187 -209 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/1 up/down: 51/-209) Total: -158 bytes
* gunzip: restore mtime. approx +80 bytes of codeDenis Vlasenko2008-11-015-23/+56
| | | | | | rpm: make code more robust lsmod: small code shrink
* cpio: emit TRAILER even when hard links were found.Denis Vlasenko2008-10-261-2/+3
| | | | | by Pascal Bellard (pascal.bellard AT ads-lu.com)
* tar: fix typo in commentDenis Vlasenko2008-10-251-1/+1
|
* tar: fix bug 3844: non-root tar does not preserve permsDenis Vlasenko2008-10-241-0/+4
|
* cpio: fix regression in prev commit (harmless)Denis Vlasenko2008-10-171-2/+4
|
* data_extract_all: do not complain if directory exists on mkdirDenis Vlasenko2008-10-173-2/+8
| | | | | | rpm/cpio: move "20653 blocks" printout from get_header_cpio to cpio_main - rpm doesn't want to have that
* rpm: fix incompatibilities which prevented rpm -i foo.src.rpmDenis Vlasenko2008-10-161-4/+11
| | | | | | function old new delta fileaction_setowngrp 57 89 +32