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

bugzilla at busybox.net bugzilla at busybox.net
Sat Sep 21 13:38:05 UTC 2013


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

--- Comment #10 from Danila Galimov <bgrh at mail.ru> 2013-09-21 13:38:27 UTC ---
(In reply to comment #7)
> (In reply to comment #6)
> > > > 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
> > So, as i understand, auto g-unzip is just not implemented yet? Is it planned to
> > be implemented?
> 
> It is implemented:
> 
> $ busybox tar --help
> BusyBox v1.22.0.git (2013-07-30 11:58:43 CEST) multi-call binary.
> 
> Usage: tar -[cxtZzJjahmvO] [-X FILE] [-T FILE] [-f TARFILE] [-C DIR] [FILE]...
> 
> Create, extract, or list files from a tar file
> 
> Operation:
>     c    Create
>     x    Extract
>     t    List
>     f    Name of TARFILE ('-' for stdin/out)
>     C    Change to DIR before operation
>     v    Verbose
>     Z    (De)compress using compress
>     z    (De)compress using gzip
>     J    (De)compress using xz
>     j    (De)compress using bzip2
>     a    (De)compress using lzma
>     O    Extract to stdout
>     h    Follow symlinks
>     m    Don't restore mtime
>     exclude    File to exclude
>     X    File with names to exclude
>     T    File with names to include

Denis, my version shows that slightly another options:

1|shell at android:/storage/sdcard0/flash $ busybox tar --help
busybox tar --help
BusyBox v1.21.1-Stericson (2013-07-08 15:58:11 BST) multi-call binary.

Usage: tar -[cxtZhmvO] [-X FILE] [-T FILE] [-f TARFILE] [-C DIR] [FILE]...

Create, extract, or list files from a tar file

Operation:
        c       Create
        x       Extract
        t       List
        f       Name of TARFILE ('-' for stdin/out)
        C       Change to DIR before operation
        v       Verbose
        Z       (De)compress using compress
        O       Extract to stdout
        h       Follow symlinks
        m       Don't restore mtime
        exclude File to exclude
        X       File with names to exclude
        T       File with names to include

Maybe it was included only in 1.22 version?

-- 
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