summaryrefslogtreecommitdiffstats
path: root/src/restore.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2012-07-17 19:07:37 +0200
committerGravatar Nikias Bassen2012-07-17 19:07:37 +0200
commite79d523de9b25d2995920fa532af31be29a14f29 (patch)
tree5208bf4dcce5b73dba626f239ce88f68f5124f72 /src/restore.c
parent1f8005b857f3a5848a22d886c488d622aff84395 (diff)
downloadidevicerestore-e79d523de9b25d2995920fa532af31be29a14f29.tar.gz
idevicerestore-e79d523de9b25d2995920fa532af31be29a14f29.tar.bz2
restore: handle -1 error
Diffstat (limited to 'src/restore.c')
-rw-r--r--src/restore.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/restore.c b/src/restore.c
index 49c487d..3b79ad1 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -574,6 +574,9 @@ int restore_handle_status_msg(restored_client_t client, plist_t msg) {
info("Status: Restore Finished\n");
restore_finished = 1;
break;
+ case 0xFFFFFFFFFFFFFFFFLL:
+ info("Status: Verification Error\n");
+ break;
case 6:
info("Status: Disk Failure\n");
break;
@@ -594,6 +597,9 @@ int restore_handle_status_msg(restored_client_t client, plist_t msg) {
if (node && plist_get_node_type(node) == PLIST_UINT) {
plist_get_uint_val(node, &value);
result = -value;
+ if (result > 0) {
+ result = -result;
+ }
}
// check if log is available