OpenComputers II

OpenComputers II

27.1k Downloads

Bad 'tar' in busybox

Bs0Dd opened this issue ยท 7 comments

commented

I have a problem with 'tar' integrated in busybox. When i try to unpack tar.xx archive, tar returns tar: invalid tar magic.

Pic

I built tar from sources on gnu.org and its works correctly, so there is something wrong with the busybox version.

commented

invalid tar magic likely means it thinks file header is invalid. Not certain, but likely. Has this worked with different tar files?

commented

Has this worked with different tar files?

Yes, i tried to unpack some archives with sources. I can unpack all by custom tar, but standard tar always returns tar: invalid tar magic

commented

It looks like tar has no compression features there. I got around it using gunzip.

cat yourarchive.tar.gz | gunzip | tar -x
commented

I'll have to see how much extra disk space enabling that feature would eat. May possibly be something we'll just live with as a quirk.

commented

Can't find an option to enable this in busybox, so the above is what it is, I'm afraid.

commented

Found the setting after all, will work as of 7797c06.

commented

tar -xvfz xxx.tar.gz