summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2016-10-21 14:51:02 +0200
committerGravatar Nikias Bassen2016-10-21 14:51:02 +0200
commit2c16751bafb41a049e30f211c2a21c3b8c68259e (patch)
tree0c667dedaf70cd885441946da7c9fd14d70a9b16
parent5dd8b52915cb5d9be91549366e989b28f3e29890 (diff)
downloadlibimobiledevice-2c16751bafb41a049e30f211c2a21c3b8c68259e.tar.gz
libimobiledevice-2c16751bafb41a049e30f211c2a21c3b8c68259e.tar.bz2
idevicebackup2: Don't report an error when file to remove doesn't exist
-rw-r--r--tools/idevicebackup2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c
index f47ff33..d355200 100644
--- a/tools/idevicebackup2.c
+++ b/tools/idevicebackup2.c
@@ -2128,7 +2128,7 @@ checkpoint:
} else {
res = remove_file(newpath);
}
- if (res != 0) {
+ if (res != 0 && res != ENOENT) {
if (!suppress_warning)
printf("Could not remove '%s': %s (%d)\n", newpath, strerror(res), res);
errcode = errno_to_device_error(res);