Bug 9406 - Busybox 1.25.0 - tar: bad tar magic
Summary: Busybox 1.25.0 - tar: bad tar magic
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-07 21:18 UTC by Anton Voyl
Modified: 2016-11-11 16:58 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
Busybox config (28.68 KB, text/plain)
2016-11-07 21:18 UTC, Anton Voyl
Details

Note You need to log in before you can comment on or make changes to this bug.
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