summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-09-02 06:50:02 -0400
committerGitHub <noreply@github.com>2020-09-02 06:50:02 -0400
commit1184cdf03d8464451d36b24643e57b65a8b97980 (patch)
tree7799604cb7de6956479c66f51a27ed2d4255e3b9 /pkg
parent96079e2d18a0a7219a59a98134ad01b962b6f881 (diff)
parent7cb0bf01ce51eb99f4b543f6d4bcdf8f10d45820 (diff)
downloadpodman-1184cdf03d8464451d36b24643e57b65a8b97980.tar.gz
podman-1184cdf03d8464451d36b24643e57b65a8b97980.tar.bz2
podman-1184cdf03d8464451d36b24643e57b65a8b97980.zip
Merge pull request #7519 from jjzmajic/fix/vestigial-mkdir
Don't create ~/.config after removing storage.conf
Diffstat (limited to 'pkg')
-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