From 7cb0bf01ce51eb99f4b543f6d4bcdf8f10d45820 Mon Sep 17 00:00:00 2001 From: jjzmajic Date: Tue, 1 Sep 2020 17:50:25 +0800 Subject: Don't create ~/.config after removing storage.conf Fixes #7509. There is no need to create a ~/.config directory now that ~/.config/containers/storage.conf is not created automatically. Podman has no use for it if it does not exist already. Signed-off-by: jjzmajic --- pkg/util/utils_supported.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'pkg') diff --git a/pkg/util/utils_supported.go b/pkg/util/utils_supported.go index bf59240c6..d627208d8 100644 --- a/pkg/util/utils_supported.go +++ b/pkg/util/utils_supported.go @@ -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 -- cgit v1.2.3-54-g00ecf