[gvfs/gnome-3-20] afc: Fix iOS 7 trust dialogue handling



commit 6516fd0c5d866b3f0c7e3782ccb9f990cdc833f4
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 b2285d4..f6a147d 100644
--- a/daemon/gvfsbackendafc.c
+++ b/daemon/gvfsbackendafc.c
@@ -591,7 +591,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]