diff options
| author | 2016-10-21 14:51:02 +0200 | |
|---|---|---|
| committer | 2016-10-21 14:51:02 +0200 | |
| commit | 2c16751bafb41a049e30f211c2a21c3b8c68259e (patch) | |
| tree | 0c667dedaf70cd885441946da7c9fd14d70a9b16 /tools | |
| parent | 5dd8b52915cb5d9be91549366e989b28f3e29890 (diff) | |
| download | libimobiledevice-2c16751bafb41a049e30f211c2a21c3b8c68259e.tar.gz libimobiledevice-2c16751bafb41a049e30f211c2a21c3b8c68259e.tar.bz2 | |
idevicebackup2: Don't report an error when file to remove doesn't exist
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/idevicebackup2.c | 2 |
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: | |||
| 2128 | } else { | 2128 | } else { |
| 2129 | res = remove_file(newpath); | 2129 | res = remove_file(newpath); |
| 2130 | } | 2130 | } |
| 2131 | if (res != 0) { | 2131 | if (res != 0 && res != ENOENT) { |
| 2132 | if (!suppress_warning) | 2132 | if (!suppress_warning) |
| 2133 | printf("Could not remove '%s': %s (%d)\n", newpath, strerror(res), res); | 2133 | printf("Could not remove '%s': %s (%d)\n", newpath, strerror(res), res); |
| 2134 | errcode = errno_to_device_error(res); | 2134 | errcode = errno_to_device_error(res); |
