diff options
author | Nikias Bassen | 2013-12-02 19:23:19 +0100 |
---|---|---|
committer | Nikias Bassen | 2013-12-02 19:23:19 +0100 |
commit | 24462e8192a365deb826dc542c200caa7c4a67f5 (patch) | |
tree | aaeb355e76733c4699adf3d16f873356e9eb00ca /src/ipsw.c | |
parent | 3eaa1a86cd41a385f0ca62e7f2a297454dd32e22 (diff) | |
download | idevicerestore-24462e8192a365deb826dc542c200caa7c4a67f5.tar.gz idevicerestore-24462e8192a365deb826dc542c200caa7c4a67f5.tar.bz2 |
respect --cache-path when using --latest
Diffstat (limited to 'src/ipsw.c')
-rw-r--r-- | src/ipsw.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -435,7 +435,11 @@ int ipsw_download_latest_fw(plist_t version_data, const char* product, const cha info("Latest firmware is %s\n", fwfn); char fwlfn[256]; - sprintf(fwlfn, "%s/%s", todir, fwfn); + if (todir) { + sprintf(fwlfn, "%s/%s", todir, fwfn); + } else { + sprintf(fwlfn, "%s", fwfn); + } char fwlock[256]; sprintf(fwlock, "%s.lock", fwlfn); |