diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-09-05 18:07:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-05 18:07:50 +0200 |
commit | 3f81f4409d41510dd7440af9a3321c949ca485a0 (patch) | |
tree | 2e803a4113c075fade8e6a5a72381020c45374d0 | |
parent | b962b1e3538312f145aea0cf5546ae31f35f635f (diff) | |
parent | 772af18205eacf95ae55a4167f7f48e917bcd5e1 (diff) | |
download | podman-3f81f4409d41510dd7440af9a3321c949ca485a0.tar.gz podman-3f81f4409d41510dd7440af9a3321c949ca485a0.tar.bz2 podman-3f81f4409d41510dd7440af9a3321c949ca485a0.zip |
Merge pull request #3947 from rhatdan/tmpdir
Set TMPDIR to /var/tmp by default
-rw-r--r-- | cmd/podman/main.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/podman/main.go b/cmd/podman/main.go index dc44a9110..2b808b2bc 100644 --- a/cmd/podman/main.go +++ b/cmd/podman/main.go @@ -145,6 +145,10 @@ func main() { if reexec.Init() { return } + // Hard code TMPDIR functions to use /var/tmp, if user did not override + if _, ok := os.LookupEnv("TMPDIR"); !ok { + os.Setenv("TMPDIR", "/var/tmp") + } if err := rootCmd.Execute(); err != nil { outputError(err) } else { |