]> Cypherpunks repositories - gostls13.git/commit
archive/tar: populate Devmajor and Devminor in FileInfoHeader on *BSD
authorTobias Klauser <tklauser@distanz.ch>
Wed, 13 Sep 2017 07:11:49 +0000 (09:11 +0200)
committerJoe Tsai <thebrokentoaster@gmail.com>
Wed, 13 Sep 2017 21:02:11 +0000 (21:02 +0000)
commit3098cf01754a2cda60ff2953f5c09c010d7683bf
treed9f546033cda906255eb173c57d373922ad1bb93
parent577967799c22e5a443ec49f494039f80e08202fe
archive/tar: populate Devmajor and Devminor in FileInfoHeader on *BSD

Extract device major/minor number on all the BSDs and set Devmajor and
Devminor in FileInfoHeader. Code based on the corresponding Major/Minor
implementations in golang.org/x/sys/unix.

Change-Id: Ieffa7ce0cdbe6481950de666b2f5f88407a32382
Reviewed-on: https://go-review.googlesource.com/63470
Reviewed-by: Joe Tsai <joetsai@google.com>
src/archive/tar/stat_unix.go