Bug 10696 - tar fails to extract some archives
Summary: tar fails to extract some archives
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.27.x
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-27 13:54 UTC by jpdeplaix
Modified: 2018-01-27 18:35 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

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