Skip to content

Commit

Permalink
Fixes tar extraction errors not being propagated
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Krienbühl committed Dec 28, 2018
1 parent 56f486c commit 7bc4252
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/image/untar.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@ func untarLayer(ctx context.Context, archive, dst string) error {
r.Seek(0, 0)
gzr.Reset(r)

extract.Tar(ctx, gzr, dst, func(name string) string {
err = extract.Tar(ctx, gzr, dst, func(name string) string {

// skip whiteout files
if isWhiteoutPath(name) {
return "" // file will be skipped
return ""
}

return name
Expand Down

0 comments on commit 7bc4252

Please sign in to comment.