lib/db: Dont add symlinks to blocks map (fixes #6637) (#6639)

This commit is contained in:
Simon Frei
2020-05-13 20:47:05 +02:00
committed by Jakob Borg
parent 6201eebc98
commit 6768daec07
3 changed files with 7 additions and 3 deletions
+4
View File
@@ -623,6 +623,10 @@ func (f *folder) scanSubdirs(subDirs []string) error {
}
func (f *folder) findRename(snap *db.Snapshot, mtimefs fs.Filesystem, file protocol.FileInfo) (protocol.FileInfo, bool) {
if len(file.Blocks) == 0 {
return protocol.FileInfo{}, false
}
found := false
nf := protocol.FileInfo{}