fsverity_linux.go: Fix fsverity.IsEnabled() for big endian systems
Signed-off-by: Alexey Lunev <cheembox573@gmail.com>
This commit is contained in:
parent
abd8c4c39f
commit
a7f2b562f3
@ -80,7 +80,7 @@ func IsEnabled(path string) (bool, error) {
|
||||
}
|
||||
defer f.Close()
|
||||
|
||||
var attr int
|
||||
var attr int32
|
||||
|
||||
_, _, flagErr := unix.Syscall(syscall.SYS_IOCTL, f.Fd(), uintptr(unix.FS_IOC_GETFLAGS), uintptr(unsafe.Pointer(&attr)))
|
||||
if flagErr != 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user