aboutsummaryrefslogtreecommitdiff
path: root/account.go
diff options
context:
space:
mode:
Diffstat (limited to 'account.go')
-rw-r--r--account.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/account.go b/account.go
index 9831db7..a5a3886 100644
--- a/account.go
+++ b/account.go
@@ -91,10 +91,10 @@ func (a *Account) KeyAuth(token string) (string, error) {
}
func (a *Account) Save(fname string) error {
- fd, err := CreatePrivFile(fname)
+ fd, err := CreateFile(fname, 0600)
if err != nil {
return err
}
defer fd.Close()
- return saveKey(fd, a.key)
+ return SaveKey(fd, a.key)
}