mirror of
https://github.com/containers/podman.git
synced 2025-05-17 23:26:08 +08:00
Merge pull request #7519 from jjzmajic/fix/vestigial-mkdir
Don't create ~/.config after removing storage.conf
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user