Merge pull request #3501 from wanghuaiqing2010/master

cast Rdev of Stat_t to uint64 for mips
This commit is contained in:
Michael Crosby 2019-08-08 10:27:52 -04:00 committed by GitHub
commit 1eb13fc2f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,8 @@ func deviceFromPath(path, permissions string) (*specs.LinuxDevice, error) {
}
var (
devNumber = stat.Rdev
// The type is 32bit on mips.
devNumber = uint64(stat.Rdev) // nolint: unconvert
major = unix.Major(devNumber)
minor = unix.Minor(devNumber)
)