diff options
author | Nikias Bassen | 2019-09-30 00:53:30 +0200 |
---|---|---|
committer | Nikias Bassen | 2019-09-30 00:53:30 +0200 |
commit | 4f8ed2eba843dbf3a17243d75414a96a9b330942 (patch) | |
tree | 61afa09a706aa58a4a3db7d7773d7ac4b1efa03b /tools | |
parent | d323e9ccdf3919de51513d291982d3c002528f0f (diff) | |
download | libimobiledevice-4f8ed2eba843dbf3a17243d75414a96a9b330942.tar.gz libimobiledevice-4f8ed2eba843dbf3a17243d75414a96a9b330942.tar.bz2 |
idevicebackup2: Remove RestoreApplications.plist if restore failed
Diffstat (limited to 'tools')
-rw-r--r-- | tools/idevicebackup2.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c index 10fad81..c2f04c2 100644 --- a/tools/idevicebackup2.c +++ b/tools/idevicebackup2.c @@ -2504,7 +2504,13 @@ files_out: PRINT_VERBOSE(1, "The device should reboot now.\n"); PRINT_VERBOSE(1, "Restore Successful.\n"); } else { - PRINT_VERBOSE(1, "Restore Failed (Error Code %d).\n", -result_code); + afc_remove_path(afc, "/iTunesRestore/RestoreApplications.plist"); + afc_remove_path(afc, "/iTunesRestore"); + if (quit_flag) { + PRINT_VERBOSE(1, "Restore Aborted.\n"); + } else { + PRINT_VERBOSE(1, "Restore Failed (Error Code %d).\n", -result_code); + } } break; case CMD_INFO: |