trim trailing / from ancient path (#1400)

This commit is contained in:
Simone Bologna 2025-01-30 10:26:22 +01:00 committed by GitHub
parent 348026227f
commit 984e074a9b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -473,7 +473,7 @@ func checkDeletePermissions(path string) (bool, error) {
func (c *PruneBlockCommand) pruneBlock(stack *node.Node, fdHandles int) error {
name := "chaindata"
oldAncientPath := c.datadirAncient
oldAncientPath := strings.TrimSuffix(c.datadirAncient, "/")
switch {
case oldAncientPath == "":