From 5ca897fbddce1d56356163f7bf3b3e5e00b7a103 Mon Sep 17 00:00:00 2001 From: perdasilva Date: Thu, 23 Jun 2022 15:24:31 +0200 Subject: [PATCH] use "" instead of /tmp Signed-off-by: perdasilva --- pkg/lib/tmp/copy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/lib/tmp/copy.go b/pkg/lib/tmp/copy.go index debb3f0d6..52a247f41 100644 --- a/pkg/lib/tmp/copy.go +++ b/pkg/lib/tmp/copy.go @@ -9,7 +9,7 @@ import ( // CopyTmpDB reads the file at the given path and copies it to a tmp directory, returning the copied file path or an err func CopyTmpDB(original string) (path string, err error) { - dst, err := ioutil.TempFile("/tmp", "db-") + dst, err := ioutil.TempFile("", "db-") if err != nil { return "", err }