mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
trim trailing / from ancient path (#1400)
This commit is contained in:
parent
348026227f
commit
984e074a9b
1 changed files with 1 additions and 1 deletions
|
|
@ -473,7 +473,7 @@ func checkDeletePermissions(path string) (bool, error) {
|
||||||
func (c *PruneBlockCommand) pruneBlock(stack *node.Node, fdHandles int) error {
|
func (c *PruneBlockCommand) pruneBlock(stack *node.Node, fdHandles int) error {
|
||||||
name := "chaindata"
|
name := "chaindata"
|
||||||
|
|
||||||
oldAncientPath := c.datadirAncient
|
oldAncientPath := strings.TrimSuffix(c.datadirAncient, "/")
|
||||||
|
|
||||||
switch {
|
switch {
|
||||||
case oldAncientPath == "":
|
case oldAncientPath == "":
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue