]> Cypherpunks repositories - gostls13.git/commit
archive/tar: fix parsePAX to be POSIX.1-2001 compliant
authorJoe Tsai <joetsai@digital-static.net>
Tue, 18 Oct 2016 23:57:02 +0000 (16:57 -0700)
committerJoe Tsai <thebrokentoaster@gmail.com>
Wed, 19 Oct 2016 18:39:30 +0000 (18:39 +0000)
commit12c9844cc6b7b9396bad4ceccfe93874b43b3c72
treefead6577c30edafcf69e446e0b5e3ad9ae6dfeed
parent04262986a0b112de5f6f0b287447319c31ef15f9
archive/tar: fix parsePAX to be POSIX.1-2001 compliant

Relevant PAX specification:
<<<
If the <value> field is zero length, it shall delete any header
block field, previously entered extended header value, or
global extended header value of the same name.
>>>

We don't delete global extender headers since the Reader doesn't
even support global headers (which the specification admits was
a controversial feature).

Change-Id: I2125a5c907b23a3dc439507ca90fa5dc47d474a9
Reviewed-on: https://go-review.googlesource.com/31440
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/archive/tar/reader.go
src/archive/tar/reader_test.go