Skip to content

Commit

Permalink
eth: fix typo in comment (#25327)
Browse files Browse the repository at this point in the history
  • Loading branch information
rithwikbabu committed Jul 29, 2022
1 parent 1af9e4f commit fea569f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/api.go
Expand Up @@ -157,7 +157,7 @@ func (api *AdminAPI) ExportChain(file string, first *uint64, last *uint64) (bool
}
if _, err := os.Stat(file); err == nil {
// File already exists. Allowing overwrite could be a DoS vector,
// since the 'file' may point to arbitrary paths on the drive
// since the 'file' may point to arbitrary paths on the drive.
return false, errors.New("location would overwrite an existing file")
}
// Make sure we can create the file to export into
Expand Down

0 comments on commit fea569f

Please sign in to comment.