projects
/
platform
/
core
/
api
/
nfc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fe3b73
)
Return permission denied error when method call blocked from dbus policy
38/214038/1
accepted/tizen/unified/20190918.102236
submit/tizen/20190918.001530
author
Jihoon Jung
<jh8801.jung@samsung.com>
Tue, 17 Sep 2019 08:39:44 +0000
(17:39 +0900)
committer
Jihoon Jung
<jh8801.jung@samsung.com>
Tue, 17 Sep 2019 08:41:03 +0000
(17:41 +0900)
Change-Id: I53355e7d103eb534a0757eba4f6bbcb1355a001f
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
src/net_nfc_client_snep.c
patch
|
blob
|
history
diff --git
a/src/net_nfc_client_snep.c
b/src/net_nfc_client_snep.c
index
3fc6d56
..
aaf8714
100755
(executable)
--- a/
src/net_nfc_client_snep.c
+++ b/
src/net_nfc_client_snep.c
@@
-403,7
+403,10
@@
net_nfc_error_e net_nfc_client_snep_register_server(const char *san,
&error) == FALSE) {
DEBUG_ERR_MSG("snep register server(sync call) failed: %s",
error->message);
- result = NET_NFC_IPC_FAIL;
+ if (error->code == G_DBUS_ERROR_ACCESS_DENIED)
+ result = NET_NFC_PERMISSION_DENIED;
+ else
+ result = NET_NFC_IPC_FAIL;
g_error_free(error);