From 4359978ef22a22ddd5a19adf18cbc80cb44244fb Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Thu, 23 Feb 2023 14:28:18 +0100 Subject: all: ioutil is deprecated in go1.19 (#3718) --- pkg/ipc/ipc.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pkg/ipc') diff --git a/pkg/ipc/ipc.go b/pkg/ipc/ipc.go index 33e87f706..5485fd5dd 100644 --- a/pkg/ipc/ipc.go +++ b/pkg/ipc/ipc.go @@ -6,7 +6,6 @@ package ipc import ( "fmt" "io" - "io/ioutil" "os" "os/exec" "path/filepath" @@ -551,7 +550,7 @@ type callReply struct { func makeCommand(pid int, bin []string, config *Config, inFile, outFile *os.File, outmem []byte, tmpDirPath string) (*command, error) { - dir, err := ioutil.TempDir(tmpDirPath, "syzkaller-testdir") + dir, err := os.MkdirTemp(tmpDirPath, "syzkaller-testdir") if err != nil { return nil, fmt.Errorf("failed to create temp dir: %v", err) } -- cgit mrf-deployment