summaryrefslogtreecommitdiffstats
path: root/src/idevicerestore.c
diff options
context:
space:
mode:
authorGravatar Joshua Hill2010-06-07 05:17:30 -0400
committerGravatar Joshua Hill2010-06-07 05:17:30 -0400
commit5346ce8f7cefe7b33dd8abc44e27cb0e0816f78b (patch)
tree61a4884132293f27e48eab6b468131ad158be7fe /src/idevicerestore.c
parenta91e336c24a0d741e47be7adf0cd0b2beb20e5ab (diff)
downloadidevicerestore-5346ce8f7cefe7b33dd8abc44e27cb0e0816f78b.tar.gz
idevicerestore-5346ce8f7cefe7b33dd8abc44e27cb0e0816f78b.tar.bz2
More small fixes and updated the TODO list
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r--src/idevicerestore.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index a1faeac..cc97e2c 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -144,6 +144,13 @@ int main(int argc, char* argv[]) {
}
idevicerestore_device = &idevicerestore_devices[id];
+ if (idevicerestore_mode == MODE_RESTORE) {
+ if (restore_reboot(uuid) < 0) {
+ error("ERROR: Unable to exit restore mode\n");
+ return -1;
+ }
+ }
+
// extract buildmanifest
plist_t buildmanifest = NULL;
info("Extracting BuildManifest from IPSW\n");
@@ -590,7 +597,7 @@ int extract_filesystem(const char* ipsw, plist_t build_identity, char** filesyst
return 0;
}
-int get_signed_component(char* ipsw, plist_t tss, const char* path, char** data, uint32_t* size) {
+int get_signed_component(const char* ipsw, plist_t tss, const char* path, char** data, uint32_t* size) {
img3_file* img3 = NULL;
uint32_t component_size = 0;
char* component_data = NULL;