@cryptotaxi247 / kubo / commits / 9ebfb4953

go-ipfs-config: fix: remove group permissions

There's no reason to give the group access to these files by default.

Steven Allen committed Jun 3, 2020 at 09:03 UTC 9ebfb4953020a09b94664c4a74a7d87f86427797
1 file changed +2 -2
config/serialize/serialize.go
+2 -2
@@ -35,12 +35,12 @@ func ReadConfigFile(filename string, cfg interface{}) error {
35
36 // WriteConfigFile writes the config from `cfg` into `filename`.
37 func WriteConfigFile(filename string, cfg interface{}) error {
38 - err := os.MkdirAll(filepath.Dir(filename), 0775)
38 + err := os.MkdirAll(filepath.Dir(filename), 0755)
39 if err != nil {
40 return err
41 }
42
43 - f, err := atomicfile.New(filename, 0660)
43 + f, err := atomicfile.New(filename, 0600)
44 if err != nil {
45 return err
46 }