lib/scanner: Support walking a symlink root (ref #4353)

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4666
LGTM: AudriusButkevicius, imsodin
This commit is contained in:
Nicholas Rishel authored and Audrius Butkevicius committed 2018-01-24 00:05:47 +00:00
1 parent 885e3f19bd
commit a505231774
6 files changed
+65 -120

No files matched your search

+1 -1
View File
@@ -46,7 +46,7 @@ func (f *walkFilesystem) walk(path string, info FileInfo, walkFn WalkFunc) error
return err
}
if !info.IsDir() {
if !info.IsDir() && path != "." {
return nil
}