Merge pull request #7519 from jjzmajic/fix/vestigial-mkdir

Don't create ~/.config after removing storage.conf
This commit is contained in:
OpenShift Merge Robot 2020-09-02 06:50:02 -04:00 committed by GitHub
commit 1184cdf03d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

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