diff options
-rw-r--r-- | include/libimobiledevice/file_relay.h | 1 | ||||
-rw-r--r-- | src/file_relay.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/libimobiledevice/file_relay.h b/include/libimobiledevice/file_relay.h index f9318bd..95aba6b 100644 --- a/include/libimobiledevice/file_relay.h +++ b/include/libimobiledevice/file_relay.h @@ -40,6 +40,7 @@ extern "C" { #define FILE_RELAY_E_MUX_ERROR -3 #define FILE_RELAY_E_INVALID_SOURCE -4 #define FILE_RELAY_E_STAGING_EMPTY -5 +#define FILE_RELAY_E_PERMISSION_DENIED -6 #define FILE_RELAY_E_UNKNOWN_ERROR -256 /*@}*/ diff --git a/src/file_relay.c b/src/file_relay.c index 3d1eb12..9508c2a 100644 --- a/src/file_relay.c +++ b/src/file_relay.c @@ -110,6 +110,9 @@ file_relay_error_t file_relay_request_sources_timeout(file_relay_client_t client } else if (!strcmp(errmsg, "StagingEmpty")) { debug_info("ERROR: StagingEmpty - No data available!"); err = FILE_RELAY_E_STAGING_EMPTY; + } else if (!strcmp(errmsg, "PermissionDenied")) { + debug_info("ERROR: Permission denied."); + err = FILE_RELAY_E_PERMISSION_DENIED; } else { debug_info("ERROR: Unknown error '%s'", errmsg); } |