Kdbus: Fix for handling EPERM errors 29/100229/1
authorHyotaek Shim <hyotaek.shim@samsung.com>
Fri, 25 Nov 2016 10:04:10 +0000 (19:04 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Fri, 25 Nov 2016 10:06:05 +0000 (02:06 -0800)
Change-Id: I63b35469d0fe660a33880ac02b9dcb405ceeafac
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
gio/gkdbus.c

index a51d7a5..fb40e27 100755 (executable)
@@ -3551,6 +3551,11 @@ _g_kdbus_send (GKDBusWorker  *worker,
           g_set_error (error, G_IO_ERROR, G_IO_ERROR_TIMED_OUT,
                        "Timeout was reached, %s", info);
         }
+      else if (errno == EPERM)
+        {
+          g_set_error (error, G_IO_ERROR, G_IO_ERROR_PERMISSION_DENIED,
+                       "Permission denied, %s", info);
+        }
       else
         {
           g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_FAILED, "%s, %s", g_strerror(errno), info);