summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2022-06-27 03:31:33 +0200
committerGravatar Nikias Bassen2022-06-27 03:31:33 +0200
commitfbbd4b69842cf97c2d89f0732c88ce127b5d098c (patch)
tree072cd9f2d4967431c04087a73d8b4209dab23436
parent20ad9782f1cbe6b777bd5a1878ff6c6da47e5aa3 (diff)
downloadidevicerestore-fbbd4b69842cf97c2d89f0732c88ce127b5d098c.tar.gz
idevicerestore-fbbd4b69842cf97c2d89f0732c88ce127b5d098c.tar.bz2
Ignore 'Research*' variant in build identity selection
-rw-r--r--src/idevicerestore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index 40c7d5c..96ba67a 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -1954,8 +1954,8 @@ plist_t build_manifest_get_build_identity_for_model_with_variant(plist_t build_m
}
str = plist_get_string_ptr(rvariant, NULL);
if (strcmp(str, variant) != 0) {
- /* if it's not a full match, let's try a partial match */
- if (strstr(str, variant)) {
+ /* if it's not a full match, let's try a partial match, but ignore "*Research*" */
+ if (strstr(str, variant) && !strstr(str, "Research")) {
return ident;
}
continue;