summaryrefslogtreecommitdiffstats
path: root/src/idevicerestore.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-12-02 19:23:19 +0100
committerGravatar Nikias Bassen2013-12-02 19:23:19 +0100
commit24462e8192a365deb826dc542c200caa7c4a67f5 (patch)
treeaaeb355e76733c4699adf3d16f873356e9eb00ca /src/idevicerestore.c
parent3eaa1a86cd41a385f0ca62e7f2a297454dd32e22 (diff)
downloadidevicerestore-24462e8192a365deb826dc542c200caa7c4a67f5.tar.gz
idevicerestore-24462e8192a365deb826dc542c200caa7c4a67f5.tar.bz2
respect --cache-path when using --latest
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r--src/idevicerestore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index f89f772..ef547eb 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -307,7 +307,7 @@ int idevicerestore_start(struct idevicerestore_client_t* client)
if (client->flags & FLAG_LATEST) {
char* ipsw = NULL;
- int res = ipsw_download_latest_fw(client->version_data, client->device->product_type, "cache", &ipsw);
+ int res = ipsw_download_latest_fw(client->version_data, client->device->product_type, client->cache_dir, &ipsw);
if (res != 0) {
if (ipsw) {
free(ipsw);