From 95f8ecdd536322f9f2b07fcba56b9cbf3d8e29d7 Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Thu, 28 Oct 2021 14:56:03 +0900 Subject: [PATCH] fix `libcontainer/integration/exec_test.go:1859:8: undefined: ioutil` Fix 4d176544794c0a75f4dd58fe9e971361c66a4756 Signed-off-by: Akihiro Suda --- libcontainer/integration/exec_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcontainer/integration/exec_test.go b/libcontainer/integration/exec_test.go index c71c1717c..f32f4989a 100644 --- a/libcontainer/integration/exec_test.go +++ b/libcontainer/integration/exec_test.go @@ -1856,7 +1856,7 @@ func TestBindMountAndUser(t *testing.T) { err := os.MkdirAll(dirhost, 0o755) ok(t, err) - err = ioutil.WriteFile(filepath.Join(dirhost, "foo.txt"), []byte("Hello"), 0o755) + err = os.WriteFile(filepath.Join(dirhost, "foo.txt"), []byte("Hello"), 0o755) ok(t, err) // Make this dir inaccessible to "group,others".