[Bug 6086] tar is broken on Android: resulting stream is too short and loses information

bugzilla at busybox.net bugzilla at busybox.net
Mon Aug 12 00:40:29 UTC 2013


https://bugs.busybox.net/show_bug.cgi?id=6086

--- Comment #5 from Denys Vlasenko <vda.linux at googlemail.com> 2013-08-12 00:40:52 UTC ---
(In reply to comment #2)
> I have the same(or maybe not the same) problem with decompressing tar.gz files
> on Android. I'm using newest BusyBox 1.21.1.
> 
> When I'm trying to unpack the file, it says
> 
> 1|shell at android:/sdcard/flash $ tar -xvZf joe-3.7-android.tar.gz
> tar -xvZf joe-3.7-android.tar.gz
> tar: invalid magic
> tar: short read

-Z is for auto-decompress, no auto-gunzip
> 
> Please find the hexdump attached
> 
> shell at android:/sdcard/flash $ hexdump -C joe-3.7-android.tar.gz | head
> hexdump -C joe-3.7-android.tar.gz | head
> 00000000  1f 8b 08 00 04 ed 50 4b  00 03 ec 9a 0d 98 55 55  |......PK......UU|
            ^^^^^

This file is gzipped, not compressed:

        COMPRESS_MAGIC = 0x9d1f,
        GZIP_MAGIC  = 0x8b1f,

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list