From db93da53e132905000801ccb705f305e15e87f32 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 5689c26618fd..32fde4ed6daf 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) }