[gvfs/wip/hadess/afc-error-codes: 3/3] afc: Handle permission denied error



commit 17b7e2b63dcfb75f38b5bc045bf7671379ab525a
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Feb 11 11:05:28 2020 +0100

    afc: Handle permission denied error
    
    The new string is not a string freeze breakage, it's already used in a
    number of other backends.
    
    Closes: #453

 daemon/gvfsbackendafc.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/daemon/gvfsbackendafc.c b/daemon/gvfsbackendafc.c
index 942deae5..b34e16ec 100644
--- a/daemon/gvfsbackendafc.c
+++ b/daemon/gvfsbackendafc.c
@@ -161,6 +161,10 @@ g_vfs_backend_afc_check (afc_error_t cond, GVfsJob *job)
       g_vfs_job_failed (job, G_IO_ERROR, G_IO_ERROR_CLOSED,
                         _("The connection was interrupted"));
       break;
+    case AFC_E_PERM_DENIED:
+      g_vfs_job_failed (job, G_IO_ERROR, G_IO_ERROR_PERMISSION_DENIED,
+                        _("Permission denied"));
+      break;
     case AFC_E_MUX_ERROR:
       g_vfs_job_failed (job, G_IO_ERROR, G_IO_ERROR_FAILED,
                         _("Invalid Apple File Control data received"));


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