forked from TrueCloudLab/restic
uint64(stat.Rdev) works on both platforms
This commit is contained in:
parent
6ba11d8fb7
commit
adcde1988e
3 changed files with 13 additions and 26 deletions
4
node.go
4
node.go
|
@ -373,9 +373,9 @@ func (node *Node) fillExtra(path string, fi os.FileInfo) error {
|
|||
case "symlink":
|
||||
node.LinkTarget, err = os.Readlink(path)
|
||||
case "dev":
|
||||
node.fillDevice(stat)
|
||||
node.Device = uint64(stat.Rdev)
|
||||
case "chardev":
|
||||
node.fillDevice(stat)
|
||||
node.Device = uint64(stat.Rdev)
|
||||
case "fifo":
|
||||
case "socket":
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue