summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjjzmajic <uros.m.perisic@gmail.com>2020-09-01 17:50:25 +0800
committerjjzmajic <uros.m.perisic@gmail.com>2020-09-02 09:50:37 +0800
commit7cb0bf01ce51eb99f4b543f6d4bcdf8f10d45820 (patch)
tree0c0c35699e65d101c0e7421b5e53ad8f270faa5c
parent138132e16357c1c6103e6ffa770398b663462736 (diff)
downloadpodman-7cb0bf01ce51eb99f4b543f6d4bcdf8f10d45820.tar.gz
podman-7cb0bf01ce51eb99f4b543f6d4bcdf8f10d45820.tar.bz2
podman-7cb0bf01ce51eb99f4b543f6d4bcdf8f10d45820.zip
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 <uros.m.perisic@gmail.com>
-rw-r--r--pkg/util/utils_supported.go3
1 files changed, 0 insertions, 3 deletions
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