瀏覽代碼

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

Found by staticcheck.
Felix Lange 6 年之前
父節點
當前提交
dfe891270a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      cmd/ethkey/changepassword.go

+ 1 - 1
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)
 		}