mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-28 07:36:44 +00:00
removal of execution permission of clientKey file
This commit is contained in:
parent
4256da483a
commit
fffa3c75e1
1 changed files with 1 additions and 1 deletions
|
|
@ -446,7 +446,7 @@ func writePrivateKey(privateKey *ecdsa.PrivateKey, config *Config, fileName stri
|
|||
keyEnc := hex.EncodeToString(crypto.FromECDSA(privateKey))
|
||||
|
||||
fullPath := filepath.Join(config.DataDir, fileName)
|
||||
file, err := os.OpenFile(fullPath, os.O_CREATE|os.O_WRONLY, 0700)
|
||||
file, err := os.OpenFile(fullPath, os.O_CREATE|os.O_WRONLY, 0600)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue