]> Cypherpunks repositories - gostls13.git/commit
archive/tar: read/write extended pax/gnu tar archives
authorShane Hansen <shanemhansen@gmail.com>
Mon, 11 Feb 2013 00:36:29 +0000 (11:36 +1100)
committerDavid Symonds <dsymonds@golang.org>
Mon, 11 Feb 2013 00:36:29 +0000 (11:36 +1100)
commit106827990466b9246f9395233882b1e816df398a
tree82f6388cb1512dd20e64c61be552c626a693acaa
parentfece09e58a094fb917703c147ebc9cd4f87924d0
archive/tar: read/write extended pax/gnu tar archives

Support reading pax archives and applying extended attributes
like long names, subsecond mtime resolutions, etc. Default to
writing pax archives for long file and link names.
Support reading gnu archives using the ././@LongLink extended
header for file name and link target.

Fixes #3300

R=dsymonds, dave, rogpeppe, remyoudompheng, chressie, rsc
CC=golang-dev
https://golang.org/cl/6700047
src/pkg/archive/tar/common.go
src/pkg/archive/tar/reader.go
src/pkg/archive/tar/reader_test.go
src/pkg/archive/tar/testdata/pax.tar [new file with mode: 0644]
src/pkg/archive/tar/testdata/ustar.tar [new file with mode: 0644]
src/pkg/archive/tar/writer.go
src/pkg/archive/tar/writer_test.go