From 6b10e5c611889c3a41f2c39b36b9d94e86718ea9 Mon Sep 17 00:00:00 2001 From: Cheng-Ling Lai Date: Thu, 5 Feb 2026 09:30:23 +0800 Subject: [PATCH] =?utf8?q?Prevent=20manually=20transferring=20a=20read?= =?utf8?q?=E2=80=91write=20snapshot?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- client/snbk/TheBigThing.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/snbk/TheBigThing.cc b/client/snbk/TheBigThing.cc index 8ab6a2d5..9a7b8e46 100644 --- a/client/snbk/TheBigThing.cc +++ b/client/snbk/TheBigThing.cc @@ -250,6 +250,8 @@ namespace snapper if (source_state == SourceState::MISSING) SN_THROW(Exception(_("Snapshot not on source."))); + else if (source_state == SourceState::READ_WRITE) + SN_THROW(Exception(_("Cannot transfer a read-write snapshot."))); if (target_state != TargetState::MISSING) SN_THROW(Exception(_("Snapshot already on target."))); -- 2.47.3