Do not attempt to convert .lnk files to placeholder. Also do not modify folders'...
authoralex-z <blackslayer4@gmail.com>
Thu, 14 Sep 2023 11:14:16 +0000 (13:14 +0200)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Thu, 14 Sep 2023 20:27:34 +0000 (22:27 +0200)
Signed-off-by: alex-z <blackslayer4@gmail.com>
src/libsync/discovery.cpp

index ee694c2bb0315951ac2a7ebb9eeb4a14fdd9eaf6..e33dda14d4387010fc4152877b0089a42c56319c 100644 (file)
@@ -1101,7 +1101,7 @@ void ProcessDirectoryJob::processFileAnalyzeLocalInfo(
                 item->_type = ItemTypeVirtualFileDehydration;
             } else if (!serverModified
                 && (dbEntry._inode != localEntry.inode
-                    || localEntry.isMetadataMissing
+                    || (localEntry.isMetadataMissing && item->_type == ItemTypeFile && !FileSystem::isLnkFile(item->_file))
                     || _discoveryData->_syncOptions._vfs->needsMetadataUpdate(*item))) {
                 item->_instruction = CSYNC_INSTRUCTION_UPDATE_METADATA;
                 item->_direction = SyncFileItem::Down;