[gvfs] afc: Fix iOS 7 trust dialogue handling



commit 409a172a8d6d32c3065ff4cc0b74a453cdcea965
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Jun 6 17:39:46 2016 +0200

    afc: Fix iOS 7 trust dialogue handling
    
    There are new iOS 7 related error codes that we need to handle to catch
    cases where a user action is required on the device.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=767297

 daemon/gvfsbackendafc.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/daemon/gvfsbackendafc.c b/daemon/gvfsbackendafc.c
index 85b7822..e39b952 100644
--- a/daemon/gvfsbackendafc.c
+++ b/daemon/gvfsbackendafc.c
@@ -595,7 +595,14 @@ g_vfs_backend_afc_mount (GVfsBackend *backend,
         continue;
       }
 
-    if (lerr != LOCKDOWN_E_PASSWORD_PROTECTED)
+    if (lerr == LOCKDOWN_E_USER_DENIED_PAIRING)
+      {
+        aborted = TRUE;
+        break;
+      }
+
+    if (lerr != LOCKDOWN_E_PASSWORD_PROTECTED &&
+        lerr != LOCKDOWN_E_PAIRING_DIALOG_RESPONSE_PENDING)
       break;
 
     aborted = FALSE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]