summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mobilebackup2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mobilebackup2.c b/src/mobilebackup2.c
index 594ba84..577901e 100644
--- a/src/mobilebackup2.c
+++ b/src/mobilebackup2.c
@@ -458,6 +458,12 @@ mobilebackup2_error_t mobilebackup2_send_request(mobilebackup2_client_t client,
if (options) {
plist_dict_insert_item(dict, "Options", plist_copy(options));
}
+ if (!strcmp(request, "Unback") && options) {
+ plist_t password = plist_dict_get_item(options, "Password");
+ if (password) {
+ plist_dict_insert_item(dict, "Password", plist_copy(password));
+ }
+ }
mobilebackup2_error_t err = mobilebackup2_send_message(client, request, dict);
plist_free(dict);