Skip to content

Commit dfe8912

Browse files
fjlkaralabe
authored andcommitted
cmd/ethkey: fix file permissions in changepassword command (#20313)
Found by staticcheck.
1 parent c5c5e0d commit dfe8912

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎cmd/ethkey/changepassword.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Change the password of a keyfile.`,
7777
}
7878

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

0 commit comments

Comments
 (0)