diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-10-21 22:02:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-21 22:02:57 +0200 |
commit | d2591a54335424263374a919d485712e5b8aa093 (patch) | |
tree | 342678abd4e02bee73a987017e1acfe04fb0d41e /pkg | |
parent | d3520de6338dd1bce2dd1d51847e064e5299f63e (diff) | |
parent | fa9982b87ece21baafa08e0c17ca935ce29d7022 (diff) | |
download | podman-d2591a54335424263374a919d485712e5b8aa093.tar.gz podman-d2591a54335424263374a919d485712e5b8aa093.tar.bz2 podman-d2591a54335424263374a919d485712e5b8aa093.zip |
Merge pull request #4309 from giuseppe/write-storage-overrides
rootless: write storage overrides to the conf file
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/util/utils.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/util/utils.go b/pkg/util/utils.go index 0190b106d..d9a84e4e5 100644 --- a/pkg/util/utils.go +++ b/pkg/util/utils.go @@ -318,7 +318,7 @@ func WriteStorageConfigFile(storageOpts *storage.StoreOptions, storageConf strin if err := os.MkdirAll(filepath.Dir(storageConf), 0755); err != nil { return err } - storageFile, err := os.OpenFile(storageConf, os.O_RDWR|os.O_CREATE|os.O_EXCL, 0666) + storageFile, err := os.OpenFile(storageConf, os.O_RDWR|os.O_TRUNC, 0600) if err != nil { return errors.Wrapf(err, "cannot open %s", storageConf) } |