From d81869c166058ea97ff7847e8a8111b2bfef5dd0 Mon Sep 17 00:00:00 2001 From: Christophe Larchier Date: Fri, 8 Nov 2024 10:30:18 +0100 Subject: [PATCH] Manage access denied error in vfsUpdateMetadata --- src/libsyncengine/propagation/executor/executorworker.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libsyncengine/propagation/executor/executorworker.cpp b/src/libsyncengine/propagation/executor/executorworker.cpp index 6f91cbabf..10d8605e9 100644 --- a/src/libsyncengine/propagation/executor/executorworker.cpp +++ b/src/libsyncengine/propagation/executor/executorworker.cpp @@ -1107,6 +1107,10 @@ ExitInfo ExecutorWorker::checkLiteSyncInfoForEdit(SyncOpPtr syncOp, const SyncPa syncOp->affectedNode()->size(), syncOp->affectedNode()->id().has_value() ? *syncOp->affectedNode()->id() : std::string(), error); syncOp->setOmit(true); // Do not propagate change in file system, only in DB + // TODO: Vfs functions should return an ExitInfo struct + if (!error.empty()) { + return {ExitCode::SystemError, ExitCause::FileAccessError}; + } break; } case PinState::Unspecified: