1
0
mirror of https://github.com/chylex/Nextcloud-Desktop.git synced 2025-04-09 19:15:43 +02:00

Merge pull request from nextcloud/backport/4055/stable-3.4

[stable-3.4] Bugfix/3.4.1 rc1
This commit is contained in:
Matthieu Gallien 2021-12-09 12:13:11 +01:00 committed by GitHub
commit 4296a6041a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1076,6 +1076,7 @@ void PropagateDownloadFile::downloadFinished()
}
if (_item->_modtime <= 0) {
FileSystem::remove(_tmpFile.fileName());
done(SyncFileItem::NormalError, tr("File %1 has invalid modified time reported by server. Do not save it.").arg(QDir::toNativeSeparators(_item->_file)));
return;
}
@ -1088,6 +1089,7 @@ void PropagateDownloadFile::downloadFinished()
// Accuracy, and we really need the time from the file system. (#3103)
_item->_modtime = FileSystem::getModTime(_tmpFile.fileName());
if (_item->_modtime <= 0) {
FileSystem::remove(_tmpFile.fileName());
done(SyncFileItem::NormalError, tr("File %1 has invalid modified time reported by server. Do not save it.").arg(QDir::toNativeSeparators(_item->_file)));
return;
}