aboutsummaryrefslogtreecommitdiff
path: root/archival (follow)
Commit message (Collapse)AuthorAgeFilesLines
* win32: Unmask archivalNguyễn Thái Ngọc Duy2010-04-201-8/+9
| | | | Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
* gzip: rename eof due to symbol conflict on WindowsNguyễn Thái Ngọc Duy2010-04-201-7/+7
| | | | Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
* Config.in: mark all applets POSIX onlyNguyễn Thái Ngọc Duy2010-04-191-0/+15
|
* ar: fix a regression: "ar t arch.a" stopped shoting filesNguyễn Thái Ngọc Duy2010-04-151-1/+2
| | | | | Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: fix "hardlinks to symlinks chown" bug 1519.Denys Vlasenko2010-04-092-50/+53
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: fix mishandling of repeated hardlink in tarball; expand testsDenys Vlasenko2010-04-092-9/+28
| | | | | | | | function old new delta data_extract_all 727 767 +40 get_header_tar 1576 1572 -4 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dpkg: remove redundant checkDenys Vlasenko2010-03-301-1/+0
| | | | | | | function old new delta dpkg_main 4008 3991 -17 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dpkg: better check for validity of optionsDenys Vlasenko2010-03-301-18/+24
| | | | | | | function old new delta dpkg_main 3980 4008 +28 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dpkg: support config file overwrite optionsKim B. Heino2010-03-291-15/+111
| | | | | | | | | | | | | | | function old new delta filter_rename_config - 244 +244 static.dpkg_longopts - 112 +112 dpkg_main 3901 3980 +79 unpack_package 515 587 +72 append_control_file_to_llist - 72 +72 data_extract_all_prefix 88 116 +28 ------------------------------------------------------------------------------ (add/remove: 3/0 grow/shrink: 3/0 up/down: 607/0) Total: 607 bytes Signed-off-by: Kim B. Heino <Kim.Heino@bluegiga.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: optional support for restoring selinux contextJ. Tang2010-03-193-3/+104
| | | | | | | | | | | | | 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>
* tar compability modes for dpkgKim B. Heino2010-03-151-8/+4
| | | | | | | | | I've found couple of deb files which require old tar compability modes to be unpacked. This patch allows me to enable them for dpkg without enabling tar. Signed-off-by: Kim B. Heino <Kim.Heino@bluegiga.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ar: add archive creation supportAlexander Shishkin2010-03-154-42/+206
| | | | | | | | | | | | | | | | 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>
* gunzip: inflate_codes(): add fix from upstream gzip to prevent false CRC errorJoakim Tjernlund2010-02-111-1/+4
| | | | | Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: suppress ~60% of "aliased warnings" on gcc-4.4.1Denys Vlasenko2010-02-042-4/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* style fixes, no code changesDenys Vlasenko2010-01-281-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: style fixes. no code changes (verified with objdump)Denys Vlasenko2010-01-285-95/+106
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randomconfig fixesDenys Vlasenko2010-01-241-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: small code shrinks and compile fix for unicodeDenys Vlasenko2010-01-201-8/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: handle -m (--touch) switch, enabled by FEATURE_TAR_NOPRESERVE_TIMEMikhail Gusarov2010-01-202-0/+18
| | | | | | | | | | | | | function old new delta .rodata 2731 2779 +48 usage_messages 432 471 +39 tar_main 603 614 +11 tar_longopts 211 219 +8 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/0 up/down: 106/0) Total: 106 bytes Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cpio: fix -o-less cpio -F FILEDenys Vlasenko2010-01-091-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cpio: improve help text more; fix -p and -F interactionDenys Vlasenko2010-01-091-10/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cpio: improve help text; document two TODOsDenys Vlasenko2010-01-093-2/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: make it easier to distinquish "struct tm", pointer to one, etcDenys Vlasenko2010-01-092-16/+24
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dpkg: fix handling of names with leading dots. Closes bug 783Denys Vlasenko2010-01-081-1/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libunarchive: clean up dirty hacks. code shrank as a resultDenys Vlasenko2010-01-069-76/+60
| | | | | | | | | | | | | | | | | | | 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>
* libunarchive: trivial code shrinkDenys Vlasenko2010-01-061-10/+12
| | | | | | | function old new delta header_verbose_list 257 237 -20 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* gzip: add optional support for --long-optsMatheus Izvekov2010-01-062-1/+27
| | | | | Signed-off-by: Matheus Izvekov <mizvekov@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cpio: fix unpacking of names with leading slashesDenys Vlasenko2010-01-052-1/+10
| | | | | | | | function old new delta get_header_cpio 968 990 +22 cpio_main 533 526 -7 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ar: heh, there *was* "-1" already...Denys Vlasenko2010-01-041-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ar: fix two bugs, one added by prev comment and other we SEGV with no paramsDenys Vlasenko2010-01-042-9/+9
| | | | | | | | | | | | cpio: use optind less function old new delta ar_main 189 184 -5 cpio_main 549 533 -16 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-21) Total: -21 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: remove some uses of argcDenys Vlasenko2010-01-042-4/+7
| | | | | | | | | | | | | | | | | | | | | | | function old new delta whoami_main 34 37 +3 logname_main 60 63 +3 hostid_main 35 38 +3 ttysize_main 136 135 -1 nmeter_main 673 672 -1 logger_main 387 386 -1 uuencode_main 330 328 -2 ifupdown_main 2125 2123 -2 mesg_main 158 155 -3 free_main 333 330 -3 cal_main 902 899 -3 acpid_main 443 440 -3 ar_main 196 189 -7 find_main 476 467 -9 ifconfig_main 1235 1221 -14 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/12 up/down: 9/-49) Total: -40 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: fix problem handling tarballs with chksums prepended by spacesDenys Vlasenko2010-01-031-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: do not assign to stdout/stderr, it's not portable.Denys Vlasenko2010-01-021-4/+1
| | | | | | | | | | Based on patch by Aaron Carroll <xaaronc@gmail.com> function old new delta time_main 1062 1052 -10 cpio_main 563 549 -14 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: fix recently added SEGV on "tar" w/o argsDenys Vlasenko2009-12-181-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: add support for --overwrite. +70 bytes.Denys Vlasenko2009-12-162-3/+15
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libunarchive: move dpkg-specific things into dpkg.c. 0 byte size differencesDenys Vlasenko2009-12-164-29/+19
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: check for close success; fix chunked; do not bother to send QUIT to ftpDenys Vlasenko2009-12-111-1/+1
| | | | | | Also, random fixes to use %u for unsigned quantities. -14 bytes in wget. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix improper utimes usageDenys Vlasenko2009-11-292-8/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: revert part of last change. -39 bytesDenys Vlasenko2009-11-291-18/+11
| | | | | | | It looks like GNU "tar cf file file" _does_ save file as if it is a hardlink, when it meets it for the second time. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: fix bug 673 (misdetection of repeated dir as hardlink). +92 bytesDenys Vlasenko2009-11-292-61/+82
| | | | | | | | While at it, remove many superfluous ops on unpack: mkdir("."), lots of umask() calls. Can remove more by caching username->uid. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libunarchive: fix reversed test for older/newerDenys Vlasenko2009-11-241-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* some non-gnu compilers can't have non-const struct initializersDenys Vlasenko2009-11-152-5/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* use utimes() rather than obsolescent utime()Bernhard Reutner-Fischer2009-11-151-3/+3
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* use utimes() rather than obsolescent utime()Bernhard Reutner-Fischer2009-11-141-5/+3
| | | | | | | utime is obsolescent in POSIX.1-2008, use utimes() for now. Untested. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* *: use "can't" instead of "cannot"Denys Vlasenko2009-11-132-4/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: introduce and use ffulsh_all()Denys Vlasenko2009-11-021-1/+1
| | | | | | | | | | | | | | | | | | | | function old new delta buffer_fill_and_print 179 196 +17 fflush_all - 9 +9 spawn 87 92 +5 rtcwake_main 455 453 -2 ... alarm_intr 93 84 -9 readcmd 1072 1062 -10 bb_ask 345 333 -12 more_main 845 832 -13 flush_stdout_stderr 42 23 -19 xfflush_stdout 27 - -27 flush_stderr 30 - -30 ------------------------------------------------------------------------------ (add/remove: 1/2 grow/shrink: 2/50 up/down: 31/-397) Total: -366 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: add support for -o as synonym to --no-same-owner. +5 bytesBernhard Reutner-Fischer2009-10-251-10/+12
| | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: handle "tar fx TARFILE" etcDenys Vlasenko2009-10-251-0/+27
| | | | | | | function old new delta tar_main 702 751 +49 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: optimize most of isXXXXX() macrosDenys Vlasenko2009-10-231-2/+2
| | | | | | | | text data bss dec hex filename 824164 453 6812 831429 cafc5 busybox_old 823730 453 6812 830995 cae13 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: three more NOINLINEsDenys Vlasenko2009-10-081-2/+2
| | | | | | | | | | | | | | function old new delta lzo_decompress - 525 +525 lzo_compress - 470 +470 showmode - 330 +330 fbset_main 1698 1273 -425 do_lzo_compress 799 323 -476 do_lzo_decompress 1167 526 -641 ------------------------------------------------------------------------------ (add/remove: 3/0 grow/shrink: 0/3 up/down: 1325/-1542) Total: -217 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>