summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2020-12-07 10:35:07 +0100
committerGravatar Nikias Bassen2020-12-07 10:35:07 +0100
commitf856a65a23be48bdda0a0ec2a0ef0b687402afce (patch)
treee049c9db666a309e1341c580f2c397ceac830a92
parent16a8b97af2d1a4257271208a3b512da884ab4106 (diff)
downloadlibimobiledevice-f856a65a23be48bdda0a0ec2a0ef0b687402afce.tar.gz
libimobiledevice-f856a65a23be48bdda0a0ec2a0ef0b687402afce.tar.bz2
idevicebackup2: Handle DLMessagePurgeDiskSpace by sending back error code
-rw-r--r--tools/idevicebackup2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c
index 6412fe2..068420d 100644
--- a/tools/idevicebackup2.c
+++ b/tools/idevicebackup2.c
@@ -2252,6 +2252,11 @@ checkpoint:
plist_t freespace_item = plist_new_uint(freespace);
mobilebackup2_send_status_response(mobilebackup2, res, NULL, freespace_item);
plist_free(freespace_item);
+ } else if (!strcmp(dlmsg, "DLMessagePurgeDiskSpace")) {
+ /* device wants to purge disk space on the host - not supported */
+ plist_t empty_dict = plist_new_dict();
+ err = mobilebackup2_send_status_response(mobilebackup2, -1, "Operation not supported", empty_dict);
+ plist_free(empty_dict);
} else if (!strcmp(dlmsg, "DLContentsOfDirectory")) {
/* list directory contents */
mb2_handle_list_directory(mobilebackup2, message, backup_directory);