Merge pull request #8241 from rhatdan/tmpfile

Use /tmp/podman-run-* for backup XDG_RUNTIME_DIR
This commit is contained in:
OpenShift Merge Robot
2020-11-06 15:43:33 +00:00
committed by GitHub
5 changed files with 9 additions and 4 deletions

View File

@ -38,7 +38,7 @@ func GetRuntimeDir() (string, error) {
}
}
if runtimeDir == "" {
tmpDir := filepath.Join(os.TempDir(), fmt.Sprintf("run-%s", uid))
tmpDir := filepath.Join(os.TempDir(), fmt.Sprintf("podman-run-%s", uid))
if err := os.MkdirAll(tmpDir, 0700); err != nil {
logrus.Debug(err)
}