From e02a0c0da685c2976ad51937853dd87ea14b880e Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sun, 28 Nov 2010 16:15:53 +0100 Subject: idevicebackup4: remove incomplete files on error --- tools/idevicebackup4.c | 1 + 1 file changed, 1 insertion(+) 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()); -- cgit v1.1-32-gdbae