summaryrefslogtreecommitdiffstats
path: root/src
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 /src
parent06d1e2c22a8f0b28124d20bdd0d24082fe49658c (diff)
downloadlibimobiledevice-851d665c9686fc9ec847adb8f23d349a25e4e9b6.tar.gz
libimobiledevice-851d665c9686fc9ec847adb8f23d349a25e4e9b6.tar.bz2
file_relay: Handle new PermissionDenied error (iOS 8 GM+)
Diffstat (limited to 'src')
-rw-r--r--src/file_relay.c3
1 files changed, 3 insertions, 0 deletions
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);
}