diff --git a/wallet/entropystore/utils.go b/wallet/entropystore/utils.go index 85fa19d7b..5328e8323 100644 --- a/wallet/entropystore/utils.go +++ b/wallet/entropystore/utils.go @@ -23,6 +23,10 @@ func IsMayValidEntropystoreFile(path string) (bool, *types.Address, error) { return false, nil, err } + if !fi.Mode().IsRegular() { + return false, nil, nil + } + // out keystore file size is about 500 so if chain file is very large it must not be chain keystore file if fi.Size() > 2*1024 { return false, nil, nil