Skip to content

Commit a7f2b56

Browse files
xbt573k8s-infra-cherrypick-robot
authored andcommitted
fsverity_linux.go: Fix fsverity.IsEnabled() for big endian systems
Signed-off-by: Alexey Lunev <[email protected]>
1 parent abd8c4c commit a7f2b56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/fsverity/fsverity_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func IsEnabled(path string) (bool, error) {
8080
}
8181
defer f.Close()
8282

83-
var attr int
83+
var attr int32
8484

8585
_, _, flagErr := unix.Syscall(syscall.SYS_IOCTL, f.Fd(), uintptr(unix.FS_IOC_GETFLAGS), uintptr(unsafe.Pointer(&attr)))
8686
if flagErr != 0 {

0 commit comments

Comments
 (0)