diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-06-30 10:34:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-30 10:34:58 -0400 |
commit | 83bde3bdaf7f7b24f9ad794154207a95e7747f28 (patch) | |
tree | 2f331e6a8681d23a112ea8c77f9d5ec166e16a72 | |
parent | 1dab8d1e46ba5cec5f4a302ecb38b51f4f229b51 (diff) | |
parent | 565688d7824c2ac26f7da620a419b34c9fe7aa59 (diff) | |
download | podman-83bde3bdaf7f7b24f9ad794154207a95e7747f28.tar.gz podman-83bde3bdaf7f7b24f9ad794154207a95e7747f28.tar.bz2 podman-83bde3bdaf7f7b24f9ad794154207a95e7747f28.zip |
Merge pull request #6821 from rhatdan/tmp
Set TMPDIR to /var/tmp by default if not set
-rw-r--r-- | cmd/podman/main.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/podman/main.go b/cmd/podman/main.go index 7a015b300..636538131 100644 --- a/cmd/podman/main.go +++ b/cmd/podman/main.go @@ -29,6 +29,11 @@ func main() { 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") + } + cfg := registry.PodmanConfig() for _, c := range registry.Commands { for _, m := range c.Mode { |