mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-12 19:16:41 +00:00
cmd/ethkey: fix file permissions in changepassword command (#20313)
Found by staticcheck.
This commit is contained in:
parent
c5c5e0dbe8
commit
dfe891270a
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ Change the password of a keyfile.`,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Then write the new keyfile in place of the old one.
|
// 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)
|
utils.Fatalf("Error writing new keyfile to disk: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue