diff options
author | Martin Szulecki | 2014-09-19 15:32:35 +0200 |
---|---|---|
committer | Martin Szulecki | 2014-09-19 15:32:35 +0200 |
commit | 851d665c9686fc9ec847adb8f23d349a25e4e9b6 (patch) | |
tree | 0cdbf2cc744fc56b1df537fbd160687774011dda | |
parent | 06d1e2c22a8f0b28124d20bdd0d24082fe49658c (diff) | |
download | libimobiledevice-851d665c9686fc9ec847adb8f23d349a25e4e9b6.tar.gz libimobiledevice-851d665c9686fc9ec847adb8f23d349a25e4e9b6.tar.bz2 |
file_relay: Handle new PermissionDenied error (iOS 8 GM+)
-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); } |