projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2732bd1
)
Kdbus: Fix for handling EPERM errors
29/100229/1
author
Hyotaek Shim
<hyotaek.shim@samsung.com>
Fri, 25 Nov 2016 10:04:10 +0000
(19:04 +0900)
committer
Hyotaek 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
patch
|
blob
|
history
diff --git
a/gio/gkdbus.c
b/gio/gkdbus.c
index
a51d7a5
..
fb40e27
100755
(executable)
--- a/
gio/gkdbus.c
+++ b/
gio/gkdbus.c
@@
-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);