summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-09-07 18:48:26 +0200
committerGitHub <noreply@github.com>2021-09-07 18:48:26 +0200
commitc9646b51260da48f1008af1bc87107ed89ca8c64 (patch)
tree0be0493f949e1ab94b1324f89ef03cbcc9b28e00 /pkg
parent30d0cc3cca1e36ee43839aad7d8b9dd6d051e6a0 (diff)
parente151f4c9f7adfe385a2269003f6f7d4661900554 (diff)
downloadpodman-c9646b51260da48f1008af1bc87107ed89ca8c64.tar.gz
podman-c9646b51260da48f1008af1bc87107ed89ca8c64.tar.bz2
podman-c9646b51260da48f1008af1bc87107ed89ca8c64.zip
Merge pull request #11437 from MichaelAnckaert/fix-11418
[NO TESTS NEEDED] Fix #11418 - Default TMPDIR to /tmp on OS X
Diffstat (limited to 'pkg')
-rw-r--r--pkg/machine/qemu/options_darwin.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/pkg/machine/qemu/options_darwin.go b/pkg/machine/qemu/options_darwin.go
index 440937131..124358db8 100644
--- a/pkg/machine/qemu/options_darwin.go
+++ b/pkg/machine/qemu/options_darwin.go
@@ -2,14 +2,12 @@ package qemu
import (
"os"
-
- "github.com/pkg/errors"
)
func getRuntimeDir() (string, error) {
tmpDir, ok := os.LookupEnv("TMPDIR")
if !ok {
- return "", errors.New("unable to resolve TMPDIR")
+ tmpDir = "/tmp"
}
return tmpDir, nil
}