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
+1 -1
View File
@@ -585,7 +585,7 @@ func (db *schemaUpdater) updateSchemaTo11(_ int) error {
var putErr error
err := t.withHave(folder, protocol.LocalDeviceID[:], nil, true, func(fi FileIntf) bool {
f := fi.(FileInfoTruncated)
if f.IsDirectory() || f.IsDeleted() || f.IsInvalid() || f.BlocksHash == nil {
if f.IsDirectory() || f.IsDeleted() || f.IsSymlink() || f.IsInvalid() || f.BlocksHash == nil {
return true
}