Write account.json without executable bit set

Fixes gh-229
This commit is contained in:
Mike Doherty 2016-06-11 23:16:30 -07:00
parent cae9c70e1e
commit 58758f4761

View file

@ -101,6 +101,9 @@ func (a *Account) Save() error {
return err 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,
)
} }