projects
/
platform
/
core
/
system
/
peripheral-bus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a966331
)
privilege: do not compare the return value of cynara_check() with the wrong value
73/162673/1
author
Segwon
<segwon.han@samsung.com>
Tue, 5 Dec 2017 01:42:09 +0000
(10:42 +0900)
committer
Segwon
<segwon.han@samsung.com>
Tue, 5 Dec 2017 01:42:09 +0000
(10:42 +0900)
Change-Id: I8876914aef668d25d6f3e0e3f65910d37ad8ac74
Signed-off-by: Segwon <segwon.han@samsung.com>
src/util/peripheral_privilege.c
patch
|
blob
|
history
diff --git
a/src/util/peripheral_privilege.c
b/src/util/peripheral_privilege.c
index cfc7bd7db761881a1341d5193c17e57369b859bb..ce6b5f92641055d5b2c949cebfeb9a67c853e532 100644
(file)
--- a/
src/util/peripheral_privilege.c
+++ b/
src/util/peripheral_privilege.c
@@
-86,7
+86,7
@@
int peripheral_privilege_check(GDBusMethodInvocation *invocation, GDBusConnectio
}
ret = cynara_check(__cynara, client, session, user, PERIPHERAL_PRIVILEGE);
- if (ret !=
0
) {
+ if (ret !=
CYNARA_API_ACCESS_ALLOWED
) {
_E("Failed to check privilege");
g_free(session);
g_free(client);