Merge pull request #6821 from rhatdan/tmp

Set TMPDIR to /var/tmp by default if not set
This commit is contained in:
OpenShift Merge Robot 2020-06-30 10:34:58 -04:00 committed by GitHub
commit 83bde3bdaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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 {