tar compression autodetect bug in 1.11.0

Kim B. Heino Kim.Heino at bluegiga.com
Wed Jul 9 15:25:56 UTC 2008


Hi,

Tar file compression autodetect does not work with very small files.
See below:

[root at ysi4 root]$ echo foo > foo
[root at ysi4 root]$ tar cjf foo.tar.bz2 foo
[root at ysi4 root]$ tar xf foo.tar.bz2 
tar: short read
[root at ysi4 root]$ echo $?
1
[root at ysi4 root]$ tar xjf foo.tar.bz2 
[root at ysi4 root]$ echo $?
0
[root at ysi4 root]$ ls -la foo.tar.bz2 
-rw-r--r--    1 root     root          111 Jul  9 18:16 foo.tar.bz2

With large files it works fine. I'm using BusyBox 1.11.0.



More information about the busybox mailing list