]> Cypherpunks repositories - gostls13.git/commit
archive/tar: populate Devmajor and Devminor in FileInfoHeader on Darwin
authorTobias Klauser <tklauser@distanz.ch>
Thu, 31 Aug 2017 11:26:40 +0000 (13:26 +0200)
committerJoe Tsai <thebrokentoaster@gmail.com>
Fri, 1 Sep 2017 10:25:54 +0000 (10:25 +0000)
commitec359643a1f663c5283a81410f003f8dab60d46e
treec8446dbe6db800ff58502f66e6007e0f1b57dcbb
parentcecba84a0da049db4df9c1e8aef32b936ef986ea
archive/tar: populate Devmajor and Devminor in FileInfoHeader on Darwin

Extract device major/minor number on Darwin and set Devmajor and
Devminor in FileInfoHeader. Code based on the Major/Minor functions for
Darwin in golang.org/x/sys/unix.

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