[Bug 6908] tar is broken on Android: resulting stream produces damaged files when unpacked

bugzilla at busybox.net bugzilla at busybox.net
Sat Feb 22 01:17:53 UTC 2014


--- Comment #2 from yuri at tsoft.com 2014-02-22 01:17:53 UTC ---
> What "tar --help" says? (Is it bbox's tar? Which version?)

BusyBox v1.21.0 (2013-07-08 16:00:47 CEST) multi-call binary.

> Can you run " tar cf - my-directory |  "
> and show the (part of) the output where file data ends and zeros start?
> (The "part of" should be large - NOT three lines! more like 300 or more
> lines around the problematic part)

Now I created a new large file huge/huge3plus with random data:
# ls -l huge/                                                                   
----rwxr-x    1 system   sdcard_r 3815000000 Feb 21 12:09 huge3plus

Trying to create an archive:
# tar cf - huge > huge.tar

Resulting tar archive is obviously too small:
# ls -l huge.tar
----rwxr-x    1 system   sdcard_r 479969408 Feb 21 12:10 huge.tar

Running suggested by you command:
# cat huge.tar | hexdump -C | tail -n100000 > huge.tar.last1k.hex

Please see the compressed huge.tar.last1k.hex attached.

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