From ad9e722ac9c4ead9a99f9392f066395588a84aae Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Mon, 18 Nov 2019 15:38:34 +0100 Subject: [PATCH] cmd/ethkey: fix file permissions in changepassword command 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) }