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

This commit is contained in:
Simon Frei 2018-12-12 12:09:39 +01:00 committed by Jakob Borg
parent c98a34a5d4
commit c934918347

View File

@ -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
}