diff options
| author | 2016-10-21 14:29:56 +0200 | |
|---|---|---|
| committer | 2016-10-21 14:29:56 +0200 | |
| commit | 5dd8b52915cb5d9be91549366e989b28f3e29890 (patch) | |
| tree | 5c94392166a8ad5632a1ca81d407404976e2db11 /tools | |
| parent | c8c7adfd0e910ba5763777a25ce99f4f9143073f (diff) | |
| download | libimobiledevice-5dd8b52915cb5d9be91549366e989b28f3e29890.tar.gz libimobiledevice-5dd8b52915cb5d9be91549366e989b28f3e29890.tar.bz2 | |
idevicebackup2: Use remove_file() wrapper instead of remove()
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 | ||
