1
0
mirror of https://github.com/opencontainers/runc.git synced 2025-04-18 19:44:09 +03:00

tests/cmd/remap-rootfs: fix mips builds

Similar to #1824, we need to convert the device number to uint64 for
mips.

Signed-off-by: Henry Chen <henry.chen@oss.cipunited.com>
This commit is contained in:
Henry Chen 2025-04-10 14:43:01 +08:00
parent 7483452016
commit 08ebbfc8c7

View File

@ -49,7 +49,7 @@ type inodeID struct {
}
func toInodeID(st *syscall.Stat_t) inodeID {
return inodeID{Dev: st.Dev, Ino: st.Ino}
return inodeID{Dev: uint64(st.Dev), Ino: st.Ino} //nolint:unconvert // Dev is uint32 on e.g. MIPS.
}
func remapRootfs(root string, uidMap, gidMap []specs.LinuxIDMapping) error {