From 24462e8192a365deb826dc542c200caa7c4a67f5 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Mon, 2 Dec 2013 19:23:19 +0100 Subject: respect --cache-path when using --latest --- src/idevicerestore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/idevicerestore.c') 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); -- cgit v1.1-32-gdbae