good morning!!!!

Skip to content
Snippets Groups Projects
Commit dfe89127 authored by Felix Lange's avatar Felix Lange Committed by Péter Szilágyi
Browse files

cmd/ethkey: fix file permissions in changepassword command (#20313)

Found by staticcheck.
parent c5c5e0db
No related branches found
No related tags found
No related merge requests found
......@@ -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)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment