Fix duplicate mount sources

Fixes #9426
This commit is contained in:
Bjørn Erik Pedersen
2022-01-26 17:48:50 +01:00
parent 2655739940
commit 7a080b624e
4 changed files with 39 additions and 8 deletions

View File

@@ -270,7 +270,7 @@ func (w *Walkway) walk(path string, info FileMetaInfo, dirEntries []FileMetaInfo
meta.Path = normalizeFilename(pathMeta)
meta.PathWalk = pathn
if fim.IsDir() && w.isSeen(meta.Filename) {
if fim.IsDir() && meta.IsSymlink && w.isSeen(meta.Filename) {
// Prevent infinite recursion
// Possible cyclic reference
meta.SkipDir = true