diff options
author | jjzmajic <uros.m.perisic@gmail.com> | 2020-09-01 17:50:25 +0800 |
---|---|---|
committer | jjzmajic <uros.m.perisic@gmail.com> | 2020-09-02 09:50:37 +0800 |
commit | 7cb0bf01ce51eb99f4b543f6d4bcdf8f10d45820 (patch) | |
tree | 0c0c35699e65d101c0e7421b5e53ad8f270faa5c /pkg/util/utils_supported.go | |
parent | 138132e16357c1c6103e6ffa770398b663462736 (diff) | |
download | podman-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>
Diffstat (limited to 'pkg/util/utils_supported.go')
-rw-r--r-- | pkg/util/utils_supported.go | 3 |
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 |