Skip to content

Commit c6b1a0d

Browse files
authored
Merge pull request #7781 from nextcloud/bugfix/readOnlyClassicalSyncLnkShortcutsWindows
fix the if check for invalid virtual LNK files
2 parents 76075b6 + a45e96b commit c6b1a0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsync/discovery.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1679,7 +1679,7 @@ void ProcessDirectoryJob::processFileFinalize(
16791679
item->_type = CSyncEnums::ItemTypeVirtualFileDehydration;
16801680
}
16811681

1682-
if (item->_instruction != CSyncEnums::CSYNC_INSTRUCTION_NONE &&
1682+
if (item->_instruction == CSyncEnums::CSYNC_INSTRUCTION_NONE &&
16831683
!item->isDirectory() &&
16841684
_discoveryData->_syncOptions._vfs &&
16851685
_discoveryData->_syncOptions._vfs->mode() == OCC::Vfs::Off &&

0 commit comments

Comments
 (0)