mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +08:00
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:
parent
3d90053cdd
commit
9ebfb49530
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user