Skip to content

Commit

Permalink
go-ipfs-config: fix: remove group permissions
Browse files Browse the repository at this point in the history
There's no reason to give the group access to these files by default.
  • Loading branch information
Stebalien committed Jun 3, 2020
1 parent cc09b3d commit 9af5f66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/serialize/serialize.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 9af5f66

Please sign in to comment.