Bug 9406

Summary: Busybox 1.25.0 - tar: bad tar magic
Product: Busybox Reporter: Anton Voyl <awiouy>
Component: Standard ComplianceAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:
Attachments: Busybox config

Description Anton Voyl 2016-11-07 21:18:34 UTC
Created attachment 6801 [details]
Busybox config

Hello,

tar xzvf of the linked file fails with "bad tar magic" on Busybox 1.25.0 (config attached), but succeeds on Ubuntu.

https://github.com/Fornoth/spotify-connect-web/releases/download/0.0.3-alpha/spotify-connect-web_0.0.3-alpha_chroot.tar.gz

Other files fail to decompress with "short read".

A quick search found similar symptoms on Alpine and OpenWRT, but no fix, only a workaround: install tar. This is not an option on LibreELEC: Busybox tar should work as expected, and tar is too large. 

Thank you for your assistance,
@
Comment 1 Denys Vlasenko 2016-11-11 16:58:21 UTC
Thanks for the report.

Fixed in git:

commit 9655f95d0f501b03b33c7896b7b0c23d090aff81
Author: Denys Vlasenko <vda.linux@googlemail.com>
Date:   Fri Nov 11 17:56:45 2016 +0100

    tar: handle pax-encoded utf8 filenames and link names. Closes 9406