Browse Source

lib/scanner: Fix empty path on normalization error (fixes #5369) (#5370)

Simon Frei 6 years ago
parent
commit
c934918347
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lib/scanner/walk.go

+ 2 - 1
lib/scanner/walk.go

@@ -295,9 +295,10 @@ func (w *walker) handleItem(ctx context.Context, path string, toHashChan chan<-
 		return skip
 	}
 
+	oldPath := path
 	path, err = w.normalizePath(path, info)
 	if err != nil {
-		w.handleError(ctx, "normalizing path", path, err, finishedChan)
+		w.handleError(ctx, "normalizing path", oldPath, err, finishedChan)
 		return skip
 	}