Merge pull request #230 from doherty/account-json-executable

Write account.json without executable bit set
This commit is contained in:
xenolf 2016-06-13 03:01:50 +02:00 committed by GitHub
commit a4dfe5a7e7

View file

@ -101,6 +101,9 @@ func (a *Account) Save() error {
return err
}
return ioutil.WriteFile(path.Join(a.conf.AccountPath(a.Email), "account.json"), jsonBytes, 0700)
return ioutil.WriteFile(
path.Join(a.conf.AccountPath(a.Email), "account.json"),
jsonBytes,
0600,
)
}