Skip to content

Commit

Permalink
Merge pull request containers#7519 from jjzmajic/fix/vestigial-mkdir
Browse files Browse the repository at this point in the history
Don't create ~/.config after removing storage.conf
  • Loading branch information
openshift-merge-robot authored Sep 2, 2020
2 parents 96079e2 + 7cb0bf0 commit 1184cdf
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/util/utils_supported.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,6 @@ func GetRootlessConfigHomeDir() (string, error) {
return
}
tmpDir := filepath.Join(resolvedHome, ".config")
if err := os.MkdirAll(tmpDir, 0755); err != nil {
logrus.Errorf("unable to make temp dir %s", tmpDir)
}
st, err := os.Stat(tmpDir)
if err == nil && int(st.Sys().(*syscall.Stat_t).Uid) == os.Geteuid() && st.Mode().Perm() >= 0700 {
cfgHomeDir = tmpDir
Expand Down

0 comments on commit 1184cdf

Please sign in to comment.