From dfe891270a7edc1733af53eb7c35ec7e5b8ae36a Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Tue, 19 Nov 2019 10:16:34 +0100 Subject: [PATCH] cmd/ethkey: fix file permissions in changepassword command (#20313) Found by staticcheck. --- cmd/ethkey/changepassword.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/ethkey/changepassword.go b/cmd/ethkey/changepassword.go index 5689c26618..32fde4ed6d 100644 --- a/cmd/ethkey/changepassword.go +++ b/cmd/ethkey/changepassword.go @@ -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) }