summaryrefslogtreecommitdiff
path: root/pkg/machine/qemu
diff options
context:
space:
mode:
authorMichael Anckaert <michael.anckaert@sinax.be>2021-09-03 16:17:28 +0200
committerMichael Anckaert <michael.anckaert@sinax.be>2021-09-04 08:40:57 +0200
commite151f4c9f7adfe385a2269003f6f7d4661900554 (patch)
tree89bc713084727c92e92a8dd1ce27d256273088d6 /pkg/machine/qemu
parentaf58cb15d2aa46609fc7231647af09f808ba6c1c (diff)
downloadpodman-e151f4c9f7adfe385a2269003f6f7d4661900554.tar.gz
podman-e151f4c9f7adfe385a2269003f6f7d4661900554.tar.bz2
podman-e151f4c9f7adfe385a2269003f6f7d4661900554.zip
Fix #11418 - Default TMPDIR to /tmp on OS X
Signed-off-by: Michael Anckaert <michael.anckaert@sinax.be>
Diffstat (limited to 'pkg/machine/qemu')
-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
}