]> Cypherpunks repositories - gostls13.git/commit
archive/tar: re-implement USTAR path splitting
authorJoe Tsai <joetsai@digital-static.net>
Tue, 15 Aug 2017 00:16:52 +0000 (17:16 -0700)
committerJoe Tsai <thebrokentoaster@gmail.com>
Tue, 15 Aug 2017 05:40:22 +0000 (05:40 +0000)
commit4c55774304e5c6aecae55839ca34981acccebd85
tree87b739a9d73411721430d60ca470cb4ee5bf765f
parenta0237c527bbd093bfabe682cbab0562bc4c628e4
archive/tar: re-implement USTAR path splitting

The logic for USTAR was disabled because a previous implementation of
Writer had a wrong understanding of the differences between USTAR and GNU,
causing the prefix field is incorrectly be populated in GNU files.

Now that this issue has been fixed, we can re-enable the logic for USTAR
path splitting, which allows Writer to use the USTAR for a wider range
of possible inputs.

Updates #9683
Updates #12594
Updates #17630

Change-Id: I9fe34e5df63f99c6dd56fee3a7e7e4d6ec3995c9
Reviewed-on: https://go-review.googlesource.com/55574
Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/archive/tar/common.go
src/archive/tar/testdata/ustar.issue12594.tar [deleted file]
src/archive/tar/writer.go
src/archive/tar/writer_test.go