diff options
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/idevicebackup2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c index 7b15897..f47ff33 100644 --- a/tools/idevicebackup2.c +++ b/tools/idevicebackup2.c | |||
| @@ -960,7 +960,7 @@ static int mb2_handle_receive_files(mobilebackup2_client_t mobilebackup2, plist_ | |||
| 960 | PRINT_VERBOSE(1, "Found new flag %02x\n", code); | 960 | PRINT_VERBOSE(1, "Found new flag %02x\n", code); |
| 961 | } | 961 | } |
| 962 | 962 | ||
| 963 | remove(bname); | 963 | remove_file(bname); |
| 964 | f = fopen(bname, "wb"); | 964 | f = fopen(bname, "wb"); |
| 965 | while (f && (code == CODE_FILE_DATA)) { | 965 | while (f && (code == CODE_FILE_DATA)) { |
| 966 | blocksize = nlen-1; | 966 | blocksize = nlen-1; |
| @@ -1030,7 +1030,7 @@ static int mb2_handle_receive_files(mobilebackup2_client_t mobilebackup2, plist_ | |||
| 1030 | fname = (char*)malloc(nlen-1); | 1030 | fname = (char*)malloc(nlen-1); |
| 1031 | mobilebackup2_receive_raw(mobilebackup2, fname, nlen-1, &r); | 1031 | mobilebackup2_receive_raw(mobilebackup2, fname, nlen-1, &r); |
| 1032 | free(fname); | 1032 | free(fname); |
| 1033 | remove(bname); | 1033 | remove_file(bname); |
| 1034 | } | 1034 | } |
| 1035 | 1035 | ||
| 1036 | /* clean up */ | 1036 | /* clean up */ |
| @@ -1795,7 +1795,7 @@ checkpoint: | |||
| 1795 | info_plist = NULL; | 1795 | info_plist = NULL; |
| 1796 | } | 1796 | } |
| 1797 | info_plist = mobilebackup_factory_info_plist_new(udid, device, lockdown, afc); | 1797 | info_plist = mobilebackup_factory_info_plist_new(udid, device, lockdown, afc); |
| 1798 | remove(info_path); | 1798 | remove_file(info_path); |
| 1799 | plist_write_to_filename(info_plist, info_path, PLIST_FORMAT_XML); | 1799 | plist_write_to_filename(info_plist, info_path, PLIST_FORMAT_XML); |
| 1800 | free(info_path); | 1800 | free(info_path); |
| 1801 | 1801 | ||
