summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2014-09-19 15:32:35 +0200
committerGravatar Martin Szulecki2014-09-19 15:32:35 +0200
commit851d665c9686fc9ec847adb8f23d349a25e4e9b6 (patch)
tree0cdbf2cc744fc56b1df537fbd160687774011dda
parent06d1e2c22a8f0b28124d20bdd0d24082fe49658c (diff)
downloadlibimobiledevice-851d665c9686fc9ec847adb8f23d349a25e4e9b6.tar.gz
libimobiledevice-851d665c9686fc9ec847adb8f23d349a25e4e9b6.tar.bz2
file_relay: Handle new PermissionDenied error (iOS 8 GM+)
-rw-r--r--include/libimobiledevice/file_relay.h1
-rw-r--r--src/file_relay.c3
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);
}