Skip to content

Commit

Permalink
go-ipfs-config: Merge pull request ipfs#98 from ipfs/fix/default-perms
Browse files Browse the repository at this point in the history
fix: remove group permissions
  • Loading branch information
Stebalien authored Jun 3, 2020
2 parents b740552 + 0b1d7ad commit 34b8693
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 34b8693

Please sign in to comment.