Browse Source

Conform to go-common WriteFile*(path, mode)

pull/456/head
Jae Kwon 9 years ago
parent
commit
c37e25e76b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      addrbook.go

+ 1
- 1
addrbook.go View File

@ -318,7 +318,7 @@ func (a *AddrBook) saveToFile(filePath string) {
log.Error("Failed to save AddrBook to file", "err", err) log.Error("Failed to save AddrBook to file", "err", err)
return return
} }
err = WriteFileAtomic(filePath, jsonBytes)
err = WriteFileAtomic(filePath, jsonBytes, 0644)
if err != nil { if err != nil {
log.Error("Failed to save AddrBook to file", "file", filePath, "error", err) log.Error("Failed to save AddrBook to file", "file", filePath, "error", err)
} }


Loading…
Cancel
Save