aboutsummaryrefslogtreecommitdiff
path: root/archival (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * tar: fix tar -T to add entries in the exact order as the input listSASAKI Suguru2013-08-151-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | This fixes tar to order files in tarball correctly in this case: $ touch 1 2 3; echo -e '1\n2\n3' | tar -T- -c | tar t 1 2 3 Signed-off-by: SASAKI Suguru <suguru@sonik.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * unpackers: by users' request, print compression percentage if -v and DESKTOPDenys Vlasenko2013-07-301-13/+23
| | | | | | | | | | | | | | function old new delta bbunpack 634 731 +97 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * unzip: survive lack of CDF on non-streaming zip filesDenys Vlasenko2013-07-211-16/+39
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * unzip: increase PEEK_FROM_END from 16k to 64kDenys Vlasenko2013-07-201-1/+8
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * *: change execl sentinels from NULL to (char*)0Rich Felker2013-06-302-2/+2
| | | | | | | | | | Signed-off-by: Rich Felker <dalias@aerifal.cx> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * Fix build failures caused by not compiling open_transformer.c (#2)Denys Vlasenko2013-05-151-0/+3
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * Fix build failures caused by not compiling open_transformer.cDenys Vlasenko2013-05-121-12/+23
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge branch 'busybox' into mergeRon Yorston2013-03-1912-246/+345
|\|
| * archival: note implicit dependencies between lzop & bbunzipMike Frysinger2013-03-032-0/+2
| | | | | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| * decompress_unlzma: move function, no code changesDenys Vlasenko2013-03-011-7/+6
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * decompress_unlzma: 10% speedup in "small" codeDenys Vlasenko2013-03-011-1/+1
| | | | | | | | | | | | | | | | text data bss dec hex filename 1796 0 0 1796 704 decompress_unlzma.o 1801 0 0 1801 709 decompress_unlzma.o Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * decompress_unlzma: make "fast" version a bit smallerDenys Vlasenko2013-03-011-10/+4
| | | | | | | | | | | | | | | | | | | | It is not slower. In fact it seems a tiny bit faster too. text data bss dec hex filename 2827 0 0 2827 b0b decompress_unlzma.o 2797 0 0 2797 aed decompress_unlzma.o Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * lzop: fiq -q and OPTION_DECOMPRESS mismatchDenys Vlasenko2013-03-011-15/+16
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * bbunzip: fix order of flags vs bit definesMike Frysinger2013-02-281-4/+4
| | | | | | | | | | | | | | Too much code shuffling. Reported-by: Mandeep Singh Baines <msb@chromium.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| * bbunzip: ignore the -q flag with the decompressorsMike Frysinger2013-02-281-6/+7
| | | | | | | | | | | | | | | | The -q flag is used in shell scripts for suppressing output. Have our applets swallow the flag for compatibility. Reported-by: Mandeep Singh Baines <msb@chromium.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| * zcat: fix "zcat FILE" trying to do detection twiceDenys Vlasenko2013-02-281-8/+7
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * zcat: if seamless uncompressors are defined, autodetect file's formatDenys Vlasenko2013-02-281-14/+40
| | | | | | | | | | | | | | | | | | function old new delta bbunpack 526 622 +96 packed_usage 29335 29341 +6 gunzip_main 64 67 +3 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * fix error message on failure to oen /dev/null; fix zcat's help textDenys Vlasenko2013-02-281-6/+6
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * code shrink in check_errors_in_children()Denys Vlasenko2013-02-281-3/+8
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * xz: fix put_unaligned_{l,b}e32Leonid Lisovskiy2013-02-271-2/+2
| | | | | | | | | | Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * xz: support concatenated .xz streamsLasse Collin2013-02-271-7/+36
| | | | | | | | | | | | | | | | | | function old new delta xz_dec_reset - 77 +77 unpack_xz_stream 2402 2397 -5 Signed-off-by: Lasse Collin <lasse.collin@tukaani.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * xz: mention xzminidec.c in READMELasse Collin2013-02-271-1/+1
| | | | | | | | | | Signed-off-by: Lasse Collin <lasse.collin@tukaani.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * xz: fix incorrect XZ_BUF_ERRORLasse Collin2013-02-271-7/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | xz_dec_run() could incorrectly return XZ_BUF_ERROR if all of the following was true: - The caller knows how many bytes of output to expect and only provides that much output space. - When the last output bytes are decoded, the caller-provided input buffer ends right before the LZMA2 end of payload marker. So LZMA2 won't provide more output anymore, but it won't know it yet and thus won't return XZ_STREAM_END yet. - A BCJ filter is in use and it hasn't left any unfiltered bytes in the temp buffer. This can happen with any BCJ filter, but in practice it's more likely with filters other than the x86 BCJ. This fixes <https://bugzilla.redhat.com/show_bug.cgi?id=735408> where Squashfs thinks that a valid file system is corrupt. Thanks to Jindrich Novy for telling me that such a bug report exists, Phillip Lougher for providing excellent debug info, and other people on #fedora-ppc. This also fixes a similar bug in single-call mode where the uncompressed size of a XZ Block using BCJ + LZMA2 was 0 bytes and caller provided no output space. Many empty .xz files don't contain any Blocks and thus don't trigger this bug. This also tweaks a closely related detail: xz_dec_bcj_run() could call xz_dec_lzma2_run() to decode into temp buffer when it was known to be useless. This was harmless although it wasted a minuscule number of CPU cycles. Signed-off-by: Lasse Collin <lasse.collin@tukaani.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * xz: fix decoding of LZMA2 streams having no uncompressed data.Lasse Collin2013-02-271-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | No .xz encoder creates files with empty LZMA2 streams, but such files would still be valid and decompressors must accept them. Note that empty .xz files are a different thing than empty LZMA2 streams. This bug didn't affect typical .xz files that had no uncompressed data. Signed-off-by: Lasse Collin <lasse.collin@tukaani.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * cz: add C++ support to xz.hLasse Collin2013-02-271-0/+9
| | | | | | | | | | Signed-off-by: Lasse Collin <lasse.collin@tukaani.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * xz: remove an empty line from xz_dec_lzma2.cLasse Collin2013-02-271-1/+0
| | | | | | | | | | Signed-off-by: Lasse Collin <lasse.collin@tukaani.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * xz: make bcj_x86_test_msbyte() an inline functionLasse Collin2013-02-271-2/+5
| | | | | | | | | | Signed-off-by: Lasse Collin <lasse.collin@tukaani.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * xz: add a comment about using uint32_t as vli_typeLasse Collin2013-02-271-2/+7
| | | | | | | | | | Signed-off-by: Lasse Collin <lasse.collin@tukaani.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * xz: avoid "NOTE:" in xz.hLasse Collin2013-02-271-4/+4
| | | | | | | | | | Signed-off-by: Lasse Collin <lasse.collin@tukaani.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * xz: update READMELasse Collin2013-02-271-2/+2
| | | | | | | | | | Signed-off-by: Lasse Collin <lasse.collin@tukaani.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * xz: omit explicit \0 from HEADER_MAGICLasse Collin2013-02-271-1/+1
| | | | | | | | | | Signed-off-by: Lasse Collin <lasse.collin@tukaani.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * rpm: unmap rpm file before working with next oneDenys Vlasenko2013-02-201-3/+5
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * rpm: stop using statics; move main() to the end of the source fileDenys Vlasenko2013-02-201-146/+141
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * rpm: use "create+rename" method of replacing existing filesDenys Vlasenko2013-02-202-3/+16
| | | | | | | | | | | | | | | | Users were reporting getting errors like "ls: error while loading shared libraries: libc.so.6: ELF load command past end of file" while rpm was unpacking glibc tarball. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * rpm: make -ql display more compatible; improve help textDenys Vlasenko2013-02-201-32/+36
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge branch 'busybox' into mergeRon Yorston2013-02-0711-58/+61
|\|
| * unzip: add missing fflush; code shrinkDenys Vlasenko2013-01-221-8/+11
| | | | | | | | | | | | | | | | function old new delta my_fgets80 - 41 +41 unzip_main 2291 2242 -49 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * *: reuse more stringsDenys Vlasenko2013-01-221-2/+2
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * whitespace cleanup. no code changesDenys Vlasenko2013-01-147-31/+31
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * whitespace fixes. no code changesDenys Vlasenko2013-01-144-19/+19
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge branch 'busybox' into mergeRon Yorston2012-12-111-14/+16
|\|
| * decompress_uncompress: comment out a bigger chunk of debug codeDenys Vlasenko2012-12-051-1/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * decompress_uncompress: comment out debug printout on corrupted dataDenys Vlasenko2012-12-051-1/+2
| | | | | | | | | | | | | | | | | | | | 99% plus of all people who'll get corrupted archive wouldn't bother debugging it. The rest can uncomment the code. function old new delta unpack_Z_stream 1304 1234 -70 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * decompress_uncompress: move 'code' variable into loop - sole userDenys Vlasenko2012-12-051-13/+14
| | | | | | | | | | | | Apparently, gcc does this optimization itself, since generated code is the same. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge branch 'busybox' into mergeRon Yorston2012-09-076-93/+123
|\| | | | | | | | | | | Conflicts: include/libbb.h shell/ash.c
| * dpkg: fix creation of .list files (were empty since b768aeb). Closes 5324Denys Vlasenko2012-06-222-6/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | While at it, fix filename order and free the list of names. function old new delta llist_rev - 21 +21 get_header_tar 1733 1741 +8 unpack_package 587 585 -2 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/1 up/down: 29/-2) Total: 27 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * trivial small speed optimizationDenys Vlasenko2012-06-221-3/+5
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * tweak help textDenys Vlasenko2012-06-191-6/+6
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * unzip: make options parsing more robust on getopt w/o gnu extensionsDenys Vlasenko2012-06-151-67/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | Also, code shrank: function old new delta static.extn 15 10 -5 packed_usage 29231 29217 -14 unzip_main 2388 2291 -97 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-116) Total: -116 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * tar: fix 256-bit encoded number decodingEtienne Le Sueur2012-06-091-1/+1
| | | | | | | | | | Signed-off-by: Etienne Le Sueur <elesueur@vmware.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>