Skip to content

Commit 0219733

Browse files
authored
Merge pull request #4723 from chenx97/stat-uint32-mips
tests/cmd/remap-rootfs: fix mips builds
2 parents 35c4d96 + 08ebbfc commit 0219733

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/cmd/remap-rootfs/remap-rootfs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ type inodeID struct {
4949
}
5050

5151
func toInodeID(st *syscall.Stat_t) inodeID {
52-
return inodeID{Dev: st.Dev, Ino: st.Ino}
52+
return inodeID{Dev: uint64(st.Dev), Ino: st.Ino} //nolint:unconvert // Dev is uint32 on e.g. MIPS.
5353
}
5454

5555
func remapRootfs(root string, uidMap, gidMap []specs.LinuxIDMapping) error {

0 commit comments

Comments
 (0)