]> Cypherpunks repositories - gostls13.git/commit
archive/tar: remove file type bits from mode field
authorLars Jeppesen <jeppesen.lars@gmail.com>
Sat, 29 Apr 2017 21:25:34 +0000 (23:25 +0200)
committerJoe Tsai <thebrokentoaster@gmail.com>
Sat, 13 May 2017 00:22:29 +0000 (00:22 +0000)
commit66b5a2f3f0b1d94f69763114a85a977f5bc0277a
treec8f901ac85a070ec58c0fd916adab0e709c54f91
parent8f06e217eac10bae4993ca371ade35fecd26270e
archive/tar: remove file type bits from mode field

When writing tar files by using the FileInfoHeader
the type bits was set in the mode field of the header
This is not correct according to the standard (GNU/Posix) and
other implementations.

Fixed #20150

Change-Id: I3be7d946a1923ad5827cf45c696546a5e287ebba
Reviewed-on: https://go-review.googlesource.com/42093
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/archive/tar/common.go
src/archive/tar/tar_test.go