Skip to content

Commit

Permalink
Merge pull request #7781 from nextcloud/bugfix/readOnlyClassicalSyncL…
Browse files Browse the repository at this point in the history
…nkShortcutsWindows

fix the if check for invalid virtual LNK files
  • Loading branch information
mgallien authored Jan 22, 2025
2 parents 76075b6 + a45e96b commit c6b1a0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsync/discovery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1679,7 +1679,7 @@ void ProcessDirectoryJob::processFileFinalize(
item->_type = CSyncEnums::ItemTypeVirtualFileDehydration;
}

if (item->_instruction != CSyncEnums::CSYNC_INSTRUCTION_NONE &&
if (item->_instruction == CSyncEnums::CSYNC_INSTRUCTION_NONE &&
!item->isDirectory() &&
_discoveryData->_syncOptions._vfs &&
_discoveryData->_syncOptions._vfs->mode() == OCC::Vfs::Off &&
Expand Down

0 comments on commit c6b1a0d

Please sign in to comment.