summaryrefslogtreecommitdiffstats
path: root/src/img4.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2023-11-09 20:25:38 +0100
committerGravatar Nikias Bassen2023-11-09 20:25:38 +0100
commit10c15d596eb54c9b97cd7e6323ac8416349ca225 (patch)
tree251b8375da43cf162787472323163a69ef9e8d91 /src/img4.c
parent6085ed7429986c7dec579fe1f1303ae6651ea1f2 (diff)
downloadidevicerestore-10c15d596eb54c9b97cd7e6323ac8416349ca225.tar.gz
idevicerestore-10c15d596eb54c9b97cd7e6323ac8416349ca225.tar.bz2
Fix update restore by making sure the premanifest is properly generated
Diffstat (limited to 'src/img4.c')
-rw-r--r--src/img4.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/img4.c b/src/img4.c
index c21a075..56b0496 100644
--- a/src/img4.c
+++ b/src/img4.c
@@ -844,13 +844,12 @@ int img4_create_local_manifest(plist_t request, plist_t build_identity, plist_t*
comp = _img4_get_component_tag(key);
}
if (!comp) {
- error("ERROR: %s: Unhandled component '%s' - can't create manifest\n", __func__, key);
- free(iter);
- free(buf);
- return -1;
+ debug("DEBUG: %s: Unhandled component '%s'\n", __func__, key);
+ _manifest_write_component(&p, &length, key, val);
+ } else {
+ debug("DEBUG: found component %s (%s)\n", comp, key);
+ _manifest_write_component(&p, &length, comp, val);
}
- debug("DEBUG: found component %s (%s)\n", comp, key);
- _manifest_write_component(&p, &length, comp, val);
}
free(key);
} while (val);