summaryrefslogtreecommitdiffstats
path: root/tools/idevicebackup2.c
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 /tools/idevicebackup2.c
parenta499cfc1d232c8fe9ef6c9aeb7d4422f06a7d0c8 (diff)
downloadlibimobiledevice-ac89a1fed5ad916c81bca1515b10934e3e01b057.tar.gz
libimobiledevice-ac89a1fed5ad916c81bca1515b10934e3e01b057.tar.bz2
tools/idevicebackup2: Make sure RemoveItemsNotRestored is always set in restore options
Diffstat (limited to 'tools/idevicebackup2.c')
-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:
PRINT_VERBOSE(1, "Don't copy backup: %s\n", ((cmd_flags & CMD_FLAG_RESTORE_COPY_BACKUP) == 0 ? "Yes":"No"));
plist_dict_set_item(opts, "RestorePreserveSettings", plist_new_bool((cmd_flags & CMD_FLAG_RESTORE_SETTINGS) == 0));
PRINT_VERBOSE(1, "Preserve settings of device: %s\n", ((cmd_flags & CMD_FLAG_RESTORE_SETTINGS) == 0 ? "Yes":"No"));
- if (cmd_flags & CMD_FLAG_RESTORE_REMOVE_ITEMS)
- plist_dict_set_item(opts, "RemoveItemsNotRestored", plist_new_bool(1));
- PRINT_VERBOSE(1, "Remove items that are not restored: %s\n", ((cmd_flags & CMD_FLAG_RESTORE_REMOVE_ITEMS) ? "Yes":"No"));
+ plist_dict_set_item(opts, "RemoveItemsNotRestored", plist_new_bool(cmd_flags & CMD_FLAG_RESTORE_REMOVE_ITEMS));
+ PRINT_VERBOSE(1, "Remove items that are not restored: %s\n", ((cmd_flags & CMD_FLAG_RESTORE_REMOVE_ITEMS) ? "Yes":"No"));
if (backup_password != NULL) {
plist_dict_set_item(opts, "Password", plist_new_string(backup_password));
}