diff options
| author | 2020-12-07 10:35:07 +0100 | |
|---|---|---|
| committer | 2020-12-07 10:35:07 +0100 | |
| commit | f856a65a23be48bdda0a0ec2a0ef0b687402afce (patch) | |
| tree | e049c9db666a309e1341c580f2c397ceac830a92 | |
| parent | 16a8b97af2d1a4257271208a3b512da884ab4106 (diff) | |
| download | libimobiledevice-f856a65a23be48bdda0a0ec2a0ef0b687402afce.tar.gz libimobiledevice-f856a65a23be48bdda0a0ec2a0ef0b687402afce.tar.bz2 | |
idevicebackup2: Handle DLMessagePurgeDiskSpace by sending back error code
| -rw-r--r-- | tools/idevicebackup2.c | 5 |
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: | |||
| 2252 | plist_t freespace_item = plist_new_uint(freespace); | 2252 | plist_t freespace_item = plist_new_uint(freespace); |
| 2253 | mobilebackup2_send_status_response(mobilebackup2, res, NULL, freespace_item); | 2253 | mobilebackup2_send_status_response(mobilebackup2, res, NULL, freespace_item); |
| 2254 | plist_free(freespace_item); | 2254 | plist_free(freespace_item); |
| 2255 | } else if (!strcmp(dlmsg, "DLMessagePurgeDiskSpace")) { | ||
| 2256 | /* device wants to purge disk space on the host - not supported */ | ||
| 2257 | plist_t empty_dict = plist_new_dict(); | ||
| 2258 | err = mobilebackup2_send_status_response(mobilebackup2, -1, "Operation not supported", empty_dict); | ||
| 2259 | plist_free(empty_dict); | ||
| 2255 | } else if (!strcmp(dlmsg, "DLContentsOfDirectory")) { | 2260 | } else if (!strcmp(dlmsg, "DLContentsOfDirectory")) { |
| 2256 | /* list directory contents */ | 2261 | /* list directory contents */ |
| 2257 | mb2_handle_list_directory(mobilebackup2, message, backup_directory); | 2262 | mb2_handle_list_directory(mobilebackup2, message, backup_directory); |
