summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-09-05 18:07:50 +0200
committerGitHub <noreply@github.com>2019-09-05 18:07:50 +0200
commit3f81f4409d41510dd7440af9a3321c949ca485a0 (patch)
tree2e803a4113c075fade8e6a5a72381020c45374d0
parentb962b1e3538312f145aea0cf5546ae31f35f635f (diff)
parent772af18205eacf95ae55a4167f7f48e917bcd5e1 (diff)
downloadpodman-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.go4
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 {