summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2022-02-04 01:36:05 +0100
committerGravatar Nikias Bassen2022-02-04 01:36:05 +0100
commitac89a1fed5ad916c81bca1515b10934e3e01b057 (patch)
treeb8d4a5d88af56d212544a530889ba0c9a14b0277
parenta499cfc1d232c8fe9ef6c9aeb7d4422f06a7d0c8 (diff)
downloadlibimobiledevice-ac89a1fed5ad916c81bca1515b10934e3e01b057.tar.gz
libimobiledevice-ac89a1fed5ad916c81bca1515b10934e3e01b057.tar.bz2
tools/idevicebackup2: Make sure RemoveItemsNotRestored is always set in restore options
-rw-r--r--tools/idevicebackup2.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c
index 7c8503e..eff05ee 100644
--- a/tools/idevicebackup2.c
+++ b/tools/idevicebackup2.c
@@ -2041,9 +2041,8 @@ checkpoint:
2041 PRINT_VERBOSE(1, "Don't copy backup: %s\n", ((cmd_flags & CMD_FLAG_RESTORE_COPY_BACKUP) == 0 ? "Yes":"No")); 2041 PRINT_VERBOSE(1, "Don't copy backup: %s\n", ((cmd_flags & CMD_FLAG_RESTORE_COPY_BACKUP) == 0 ? "Yes":"No"));
2042 plist_dict_set_item(opts, "RestorePreserveSettings", plist_new_bool((cmd_flags & CMD_FLAG_RESTORE_SETTINGS) == 0)); 2042 plist_dict_set_item(opts, "RestorePreserveSettings", plist_new_bool((cmd_flags & CMD_FLAG_RESTORE_SETTINGS) == 0));
2043 PRINT_VERBOSE(1, "Preserve settings of device: %s\n", ((cmd_flags & CMD_FLAG_RESTORE_SETTINGS) == 0 ? "Yes":"No")); 2043 PRINT_VERBOSE(1, "Preserve settings of device: %s\n", ((cmd_flags & CMD_FLAG_RESTORE_SETTINGS) == 0 ? "Yes":"No"));
2044 if (cmd_flags & CMD_FLAG_RESTORE_REMOVE_ITEMS) 2044 plist_dict_set_item(opts, "RemoveItemsNotRestored", plist_new_bool(cmd_flags & CMD_FLAG_RESTORE_REMOVE_ITEMS));
2045 plist_dict_set_item(opts, "RemoveItemsNotRestored", plist_new_bool(1)); 2045 PRINT_VERBOSE(1, "Remove items that are not restored: %s\n", ((cmd_flags & CMD_FLAG_RESTORE_REMOVE_ITEMS) ? "Yes":"No"));
2046 PRINT_VERBOSE(1, "Remove items that are not restored: %s\n", ((cmd_flags & CMD_FLAG_RESTORE_REMOVE_ITEMS) ? "Yes":"No"));
2047 if (backup_password != NULL) { 2046 if (backup_password != NULL) {
2048 plist_dict_set_item(opts, "Password", plist_new_string(backup_password)); 2047 plist_dict_set_item(opts, "Password", plist_new_string(backup_password));
2049 } 2048 }