summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/idevicerestore.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index 8625176..ed984d9 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -737,6 +737,7 @@ int idevicerestore_start(struct idevicerestore_client_t* client)
if (strstr(filesystem, ".extract")) {
// rename <fsname>.extract to <fsname>
+ remove(tmpf);
rename(filesystem, tmpf);
free(filesystem);
filesystem = strdup(tmpf);