Skip to content

Commit

Permalink
Merge pull request #6821 from rhatdan/tmp
Browse files Browse the repository at this point in the history
Set TMPDIR to /var/tmp by default if not set
  • Loading branch information
openshift-merge-robot authored Jun 30, 2020
2 parents 1dab8d1 + 565688d commit 83bde3b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/podman/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 83bde3b

Please sign in to comment.