Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
cmd/ethkey: fix file permissions in changepassword command (ethereum#…
Browse files Browse the repository at this point in the history
…20313)

Found by staticcheck.
  • Loading branch information
fjl authored and elizabethengelman committed Dec 30, 2019
1 parent 5fd9461 commit db93da5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/ethkey/changepassword.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Change the password of a keyfile.`,
}

// Then write the new keyfile in place of the old one.
if err := ioutil.WriteFile(keyfilepath, newJson, 600); err != nil {
if err := ioutil.WriteFile(keyfilepath, newJson, 0600); err != nil {
utils.Fatalf("Error writing new keyfile to disk: %v", err)
}

Expand Down

0 comments on commit db93da5

Please sign in to comment.