From 58758f4761f3e4c90d230f90ce287ff4beb95d4d Mon Sep 17 00:00:00 2001 From: Mike Doherty Date: Sat, 11 Jun 2016 23:16:30 -0700 Subject: [PATCH] Write account.json without executable bit set Fixes gh-229 --- account.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/account.go b/account.go index 8b7798a0..34856e16 100644 --- a/account.go +++ b/account.go @@ -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, + ) }