Skip to content

Commit 5539584

Browse files
committed
Fix incorrect use of OCI runtime specs-go cgroup dev types
Not sure why prior Go versions allowed this, but Go 1.10 caught the Sprintf type mismatches. Signed-off-by: Phil Estes <[email protected]>
1 parent bf7d89f commit 5539584

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

devices.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ func (d *devicesController) Update(path string, resources *specs.LinuxResources)
7474
}
7575

7676
func deviceString(device specs.LinuxDeviceCgroup) string {
77-
return fmt.Sprintf("%c %s:%s %s",
78-
&device.Type,
77+
return fmt.Sprintf("%s %s:%s %s",
78+
device.Type,
7979
deviceNumber(device.Major),
8080
deviceNumber(device.Minor),
81-
&device.Access,
81+
device.Access,
8282
)
8383
}
8484

0 commit comments

Comments
 (0)