go-ipfs-config: fix: remove group permissions

There's no reason to give the group access to these files by default.
This commit is contained in:
Steven Allen 2020-06-03 09:03:56 -07:00
parent 3d90053cdd
commit 9ebfb49530

View File

@ -35,12 +35,12 @@ func ReadConfigFile(filename string, cfg interface{}) error {
// WriteConfigFile writes the config from `cfg` into `filename`.
func WriteConfigFile(filename string, cfg interface{}) error {
err := os.MkdirAll(filepath.Dir(filename), 0775)
err := os.MkdirAll(filepath.Dir(filename), 0755)
if err != nil {
return err
}
f, err := atomicfile.New(filename, 0660)
f, err := atomicfile.New(filename, 0600)
if err != nil {
return err
}