summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2016-10-21 14:29:56 +0200
committerGravatar Nikias Bassen2016-10-21 14:29:56 +0200
commit5dd8b52915cb5d9be91549366e989b28f3e29890 (patch)
tree5c94392166a8ad5632a1ca81d407404976e2db11
parentc8c7adfd0e910ba5763777a25ce99f4f9143073f (diff)
downloadlibimobiledevice-5dd8b52915cb5d9be91549366e989b28f3e29890.tar.gz
libimobiledevice-5dd8b52915cb5d9be91549366e989b28f3e29890.tar.bz2
idevicebackup2: Use remove_file() wrapper instead of remove()
-rw-r--r--tools/idevicebackup2.c6
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_
PRINT_VERBOSE(1, "Found new flag %02x\n", code);
}
- remove(bname);
+ remove_file(bname);
f = fopen(bname, "wb");
while (f && (code == CODE_FILE_DATA)) {
blocksize = nlen-1;
@@ -1030,7 +1030,7 @@ static int mb2_handle_receive_files(mobilebackup2_client_t mobilebackup2, plist_
fname = (char*)malloc(nlen-1);
mobilebackup2_receive_raw(mobilebackup2, fname, nlen-1, &r);
free(fname);
- remove(bname);
+ remove_file(bname);
}
/* clean up */
@@ -1795,7 +1795,7 @@ checkpoint:
info_plist = NULL;
}
info_plist = mobilebackup_factory_info_plist_new(udid, device, lockdown, afc);
- remove(info_path);
+ remove_file(info_path);
plist_write_to_filename(info_plist, info_path, PLIST_FORMAT_XML);
free(info_path);