prevent updating files when that would result in invalid mtime
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Thu, 3 Mar 2022 09:53:50 +0000 (10:53 +0100)
committerMatthieu Gallien (Rebase PR Action) <matthieu_gallien@yahoo.fr>
Thu, 17 Mar 2022 23:28:02 +0000 (23:28 +0000)
commitd4081c99a7916ec0641789530f287137abebc140
tree68c6c422540549e412dcde27e4fb7a7714e97dea
parentb8ff1525f78e9c6ba065001cff9106a91db6936b
prevent updating files when that would result in invalid mtime

ensure that we never try to sync a file with a sync that would result in
setting it up to an invalid mtime

test a recovery scenario with plain old sync folder and virtual files

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/libsync/discovery.cpp
test/syncenginetestutils.cpp
test/syncenginetestutils.h
test/testlocaldiscovery.cpp
test/testsyncengine.cpp
test/testsyncvirtualfiles.cpp