--- pkg/archive/archive.go.orig 2020-12-22 07:46:00 UTC +++ pkg/archive/archive.go @@ -301,7 +301,7 @@ func createTarFile(path, extractDir string, hdr *tar.H mode |= syscall.S_IFIFO } - if err := system.Mknod(path, mode, int(system.Mkdev(hdr.Devmajor, hdr.Devminor))); err != nil { + if err := system.Mknod(path, mode, uint64(system.Mkdev(hdr.Devmajor, hdr.Devminor))); err != nil { return err } --- pkg/system/mknod.go.orig 2015-06-08 13:34:30 UTC +++ pkg/system/mknod.go @@ -8,7 +8,7 @@ import ( // Mknod creates a filesystem node (file, device special file or named pipe) named path // with attributes specified by mode and dev -func Mknod(path string, mode uint32, dev int) error { +func Mknod(path string, mode uint32, dev uint64) error { return syscall.Mknod(path, mode, dev) }