1
0
Fork 0
forked from mirrors/tar-split
tar-split/archive/tar
Joe Tsai be9ac88117 archive/tar: convert Reader.Next to be loop based
Motivation for change:
* Recursive logic is hard to follow, since it tends to apply
things in reverse. On the other hand, the tar formats tend to
describe meta headers as affecting the next entry.
* Recursion also applies changes in the wrong order. Two test
files are attached that use multiple headers. The previous Go
behavior differs from what GNU and BSD tar do.

Change-Id: Ic1557256fc1363c5cb26570e5d0b9f65a9e57341
Reviewed-on: https://go-review.googlesource.com/14624
Run-TryBot: Joe Tsai <joetsai@digital-static.net>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-02-03 06:58:30 -05:00
..
testdata archive/tar: convert Reader.Next to be loop based 2016-02-03 06:58:30 -05:00
common.go archive/tar: make output deterministic 2016-02-02 14:10:11 -05:00
example_test.go archive/tar: adding from go as of a9dddb53f 2015-02-11 14:08:03 +01:00
reader.go archive/tar: convert Reader.Next to be loop based 2016-02-03 06:58:30 -05:00
reader_test.go archive/tar: convert Reader.Next to be loop based 2016-02-03 06:58:30 -05:00
stat_atim.go archive/tar: adding from go as of a9dddb53f 2015-02-11 14:08:03 +01:00
stat_atimespec.go archive/tar: adding from go as of a9dddb53f 2015-02-11 14:08:03 +01:00
stat_unix.go archive/tar: don't treat multiple file system links as a tar hardlink 2015-08-21 00:15:22 -04:00
tar_test.go archive/tar: move round-trip reading into common os file 2015-08-21 00:15:22 -04:00
writer.go archive/tar: fix issues with readGNUSparseMap1x0 2016-02-02 14:17:35 -05:00
writer_test.go archive/tar: fix issues with readGNUSparseMap1x0 2016-02-02 14:17:35 -05:00