Bug 10696

Summary: tar fails to extract some archives
Product: Busybox Reporter: jpdeplaix <jp.deplaix>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: 1.27.x   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description jpdeplaix 2018-01-27 13:54:10 UTC
Using BusyBox v1.27.2 on Alpine Linux, the following error appears with busybox tar but not with GNU tar:

$ wget https://github.com/janestreet/jbuilder/releases/download/1.0+beta16/jbuilder-1.0.beta16.tbz
$ tar xvf jbuilder-1.0.beta16.tbz
tar: invalid tar header checksum

Extracting it by hand using bunzip2 doesn't help. The problem seems to be at tar level.

This can be reproduced with the following Dockerfile:

FROM alpine
RUN wget https://github.com/janestreet/jbuilder/releases/download/1.0+beta16/jbuilder-1.0.beta16.tbz
RUN tar xvf jbuilder-1.0.beta16.tbz
Comment 1 Denys Vlasenko 2018-01-27 18:35:24 UTC
Fixed in git. Thanks!