Skip to content

Commit 3a20ea8

Browse files
committed
handle LNK virtual files only when VFS mode is not off
should ensure lnk widnows shortcut files are not mistakenly handled as virtual files Signed-off-by: Matthieu Gallien <[email protected]>
1 parent a66a5cd commit 3a20ea8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libsync/discovery.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1662,14 +1662,14 @@ void ProcessDirectoryJob::processFileFinalize(
16621662
}
16631663
}
16641664

1665-
if (_discoveryData->_syncOptions._vfs &&
1665+
if (_discoveryData->_syncOptions._vfs && _discoveryData->_syncOptions._vfs->mode() != OCC::Vfs::Off &&
16661666
(item->_type == CSyncEnums::ItemTypeFile || item->_type == CSyncEnums::ItemTypeDirectory) &&
16671667
item->_instruction == CSyncEnums::CSYNC_INSTRUCTION_NONE &&
16681668
!_discoveryData->_syncOptions._vfs->isPlaceHolderInSync(_discoveryData->_localDir + path._local)) {
16691669
item->_instruction = CSyncEnums::CSYNC_INSTRUCTION_UPDATE_VFS_METADATA;
16701670
}
16711671

1672-
if (_discoveryData->_syncOptions._vfs &&
1672+
if (_discoveryData->_syncOptions._vfs && _discoveryData->_syncOptions._vfs->mode() != OCC::Vfs::Off &&
16731673
(item->_type == CSyncEnums::ItemTypeFile || item->_type == CSyncEnums::ItemTypeDirectory) &&
16741674
item->_instruction == CSyncEnums::CSYNC_INSTRUCTION_NONE &&
16751675
FileSystem::isLnkFile((_discoveryData->_localDir + path._local)) &&

0 commit comments

Comments
 (0)