From 9d44bcf451bf295ee5334233d77a7e80867df999 Mon Sep 17 00:00:00 2001 From: BALATON Zoltan Date: Fri, 17 Oct 2014 00:16:40 +0200 Subject: Remove destination before moving a file to it as it can fail on some systems otherwise. --- src/idevicerestore.c | 1 + 1 file changed, 1 insertion(+) 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 .extract to + remove(tmpf); rename(filesystem, tmpf); free(filesystem); filesystem = strdup(tmpf); -- cgit v1.1-32-gdbae