From 99f042f7dcde8b2e10f9f6875b8aa556e40d0e20 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Wed, 24 Oct 2012 12:56:03 -0700 Subject: [PATCH] scp.c - Fixed RESTORE command to detach all attached devices before actually restoring. The goal here is to make restore behavior consistent without regard to the current VM state prior to the restore. --- scp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scp.c b/scp.c index 4f57e1df..5141bff4 100644 --- a/scp.c +++ b/scp.c @@ -3333,7 +3333,7 @@ if (v32) { /* [V3.2+] time as strin } else READ_I (sim_time); /* sim time */ READ_I (sim_rtime); /* [V2.6+] sim rel time */ - +detach_all (0, 0); /* Detach everything to start from a consistent state */ for ( ;; ) { /* device loop */ READ_S (buf); /* read device name */ if (buf[0] == 0) /* last? */