summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2010-11-28 16:15:53 +0100
committerGravatar Martin Szulecki2011-04-11 19:42:18 +0200
commite02a0c0da685c2976ad51937853dd87ea14b880e (patch)
tree31589606f8d22b03d0dc62c06f4c58b488d0649f /tools
parent5efbd488e0d906de2dbb997f8345876fdc5265f3 (diff)
downloadlibimobiledevice-e02a0c0da685c2976ad51937853dd87ea14b880e.tar.gz
libimobiledevice-e02a0c0da685c2976ad51937853dd87ea14b880e.tar.bz2
idevicebackup4: remove incomplete files on error
Diffstat (limited to 'tools')
-rw-r--r--tools/idevicebackup4.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/idevicebackup4.c b/tools/idevicebackup4.c
index ae63feb..3208c1e 100644
--- a/tools/idevicebackup4.c
+++ b/tools/idevicebackup4.c
@@ -1103,6 +1103,7 @@ static int handle_receive_files(plist_t message, const char *backup_dir)
mobilebackup2_receive_raw(mobilebackup2, fname, nlen-1, &r);
debug_buf(fname, r);
free(fname);
+ remove(bname);
}
// TODO error handling?!
mobilebackup2_send_status_response(mobilebackup2, 0, NULL, plist_new_dict());