From: Kevin Ottens Date: Fri, 18 Dec 2020 11:16:39 +0000 (+0100) Subject: One byte placeholders assumption only holds for the suffix backend X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~447^2~7 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=216b251b4001e08378ac7938872857a3aebb8560;p=nextcloud-desktop.git One byte placeholders assumption only holds for the suffix backend Signed-off-by: Kevin Ottens --- diff --git a/src/libsync/discovery.cpp b/src/libsync/discovery.cpp index 6bc3ba592..09f0dae2d 100644 --- a/src/libsync/discovery.cpp +++ b/src/libsync/discovery.cpp @@ -860,8 +860,8 @@ void ProcessDirectoryJob::processFileAnalyzeLocalInfo( auto postProcessLocalNew = [item, localEntry, this]() { if (localEntry.isVirtualFile) { // Remove the spurious file if it looks like a placeholder file - // (we know placeholder files contain " ") - if (localEntry.size <= 1) { + // (we know placeholder files contain " ", but only in the suffix case) + if (localEntry.size <= 1 || !isVfsWithSuffix()) { qCWarning(lcDisco) << "Wiping virtual file without db entry for" << _currentFolder._local + "/" + localEntry.name; item->_instruction = CSYNC_INSTRUCTION_REMOVE; item->_direction = SyncFileItem::Down;