]> Cypherpunks repositories - gostls13.git/commit
archive/tar: fix sparse files support on Darwin
authorGiovanni Bajo <rasky@develer.com>
Fri, 22 Sep 2017 22:57:51 +0000 (00:57 +0200)
committerJoe Tsai <thebrokentoaster@gmail.com>
Sat, 23 Sep 2017 16:53:28 +0000 (16:53 +0000)
commit2f8b555de27198775f9606e001ef19b76efdb415
treea5c2288bb560e98dd33fcebac1278bf0e062e000
parent6171d055dc39b316fbc051a43ce7473798bb5561
archive/tar: fix sparse files support on Darwin

Apple defined the SEEK_HOLE/SEEK_DATA constants in unistd.h
with swapped values, compared to all other UNIX systems.

Fixes #21970

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