From 2c16751bafb41a049e30f211c2a21c3b8c68259e Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Fri, 21 Oct 2016 14:51:02 +0200 Subject: idevicebackup2: Don't report an error when file to remove doesn't exist --- tools/idevicebackup2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.1-32-gdbae