]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- target state must be valid for restore
authorArvin Schnell <aschnell@suse.de>
Thu, 18 Dec 2025 09:08:01 +0000 (10:08 +0100)
committerArvin Schnell <aschnell@suse.de>
Thu, 18 Dec 2025 09:08:01 +0000 (10:08 +0100)
client/snbk/TheBigThing.cc

index b139f97a37476f44076491cea234a15cee1d04ed..a61ac4fd4c4535e5be0c5c081da4fb78b481181e 100644 (file)
@@ -183,7 +183,7 @@ namespace snapper
        if (!quiet)
            cout << sformat(_("Restoring snapshot %d."), num) << '\n';
 
-       if (target_state == TargetState::MISSING)
+       if (target_state != TargetState::VALID)
            SN_THROW(Exception(_("Snapshot not on target.")));
 
        if (source_state != SourceState::MISSING)