Skip to content

Commit

Permalink
fix the if check for invalid virtual LNK files
Browse files Browse the repository at this point in the history
should ensure we fix the DB metadata of LNK windows shortcuts with
virtual files type

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
  • Loading branch information
mgallien committed Jan 22, 2025
1 parent 76075b6 commit a45e96b
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 a45e96b

Please sign in to comment.