aboutsummaryrefslogtreecommitdiff
path: root/account.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-03-01 14:54:26 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-03-01 14:54:26 +0100
commit22b6e21cbb304403d8ce9d14060c6a876cf2c0e8 (patch)
tree1971d8bf6e60e1541faba169f066abfe1d4e2e98 /account.go
parentfb2e95cde5b0376522bad6a5d54fcc4d021c2dd6 (diff)
Cleanup file operations
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)
}