summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-03-08 17:03:59 +0100
committerGitHub <noreply@github.com>2020-03-08 17:03:59 +0100
commitf378e82e2d57ee60e5b0f973eb1ea2ee3a760428 (patch)
treefb1f4a9e5a652c0be8ea98595e4e1c70712cdce1 /cmd
parent9e12f6354c4997a7eed241e03dcf2875db20e197 (diff)
parentcb51707f91e683323ba61fca49363a997ed1be1f (diff)
downloadpodman-f378e82e2d57ee60e5b0f973eb1ea2ee3a760428.tar.gz
podman-f378e82e2d57ee60e5b0f973eb1ea2ee3a760428.tar.bz2
podman-f378e82e2d57ee60e5b0f973eb1ea2ee3a760428.zip
Merge pull request #5412 from rhatdan/tmpdir
Allow users to set TMPDIR environment
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/load.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/podman/load.go b/cmd/podman/load.go
index ed6a4e5fa..318b5b5fb 100644
--- a/cmd/podman/load.go
+++ b/cmd/podman/load.go
@@ -10,6 +10,7 @@ import (
"github.com/containers/libpod/cmd/podman/cliconfig"
"github.com/containers/libpod/cmd/podman/shared/parse"
"github.com/containers/libpod/pkg/adapter"
+ "github.com/containers/libpod/pkg/util"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"golang.org/x/crypto/ssh/terminal"
@@ -75,7 +76,7 @@ func loadCmd(c *cliconfig.LoadValues) error {
if terminal.IsTerminal(int(os.Stdin.Fd())) {
return errors.Errorf("cannot read from terminal. Use command-line redirection or the --input flag.")
}
- outFile, err := ioutil.TempFile("/var/tmp", "podman")
+ outFile, err := ioutil.TempFile(util.Tmpdir(), "podman")
if err != nil {
return errors.Errorf("error creating file %v", err)
}