From: Cheng-Ling Lai Date: Thu, 5 Feb 2026 01:30:23 +0000 (+0800) Subject: Prevent manually transferring a read‑write snapshot X-Git-Tag: v0.13.1~33^2 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1101%2Fhead;p=thirdparty%2Fsnapper.git Prevent manually transferring a read‑write snapshot --- 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.")));