summaryrefslogtreecommitdiffstats
path: root/src/recovery.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2012-09-20 21:50:42 +0200
committerGravatar Martin Szulecki2012-11-07 22:19:52 +0100
commitf4bdd1ce22061638240fb56ec73eb90c95c7dbcd (patch)
treee1d5b066d8c878d3cdcd26ebb6f8da0d226d4026 /src/recovery.c
parentfde8acd97fc9179960b89e86c3850f7803a3d35c (diff)
downloadidevicerestore-f4bdd1ce22061638240fb56ec73eb90c95c7dbcd.tar.gz
idevicerestore-f4bdd1ce22061638240fb56ec73eb90c95c7dbcd.tar.bz2
client: Fix build number parsing for iOS 6
Diffstat (limited to 'src/recovery.c')
-rw-r--r--src/recovery.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/recovery.c b/src/recovery.c
index 4d288e2..eebb4df 100644
--- a/src/recovery.c
+++ b/src/recovery.c
@@ -141,7 +141,7 @@ int recovery_enter_restore(struct idevicerestore_client_t* client, plist_t build
idevice_t device = NULL;
restored_client_t restore = NULL;
- if (client->build[0] >= '8') {
+ if (client->build_major >= 8) {
client->restore_boot_args = strdup("rd=md0 nand-enable-reformat=1 -progress");
}
@@ -153,7 +153,7 @@ int recovery_enter_restore(struct idevicerestore_client_t* client, plist_t build
}
}
- if ((client->build[0] > '8') && !(client->flags & FLAG_CUSTOM)) {
+ if ((client->build_major > 8) && !(client->flags & FLAG_CUSTOM)) {
/* send ApTicket */
if (recovery_send_ticket(client) < 0) {
error("ERROR: Unable to send APTicket\n");