projects
/
platform
/
core
/
system
/
libdbuspolicy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20d0a95
)
internal: fix mistaken getgid()->getuid()
99/199299/2
author
Adrian Szyndela
<adrian.s@samsung.com>
Fri, 8 Feb 2019 07:58:44 +0000
(08:58 +0100)
committer
Hyotaek Shim
<hyotaek.shim@samsung.com>
Fri, 8 Feb 2019 08:24:16 +0000
(08:24 +0000)
Change-Id: I97a0514e779c3a5efc3e0dc1aae3e770d8769102
src/internal/naive_policy_db.cpp
patch
|
blob
|
history
diff --git
a/src/internal/naive_policy_db.cpp
b/src/internal/naive_policy_db.cpp
index
25dbf08
..
fe08543
100755
(executable)
--- a/
src/internal/naive_policy_db.cpp
+++ b/
src/internal/naive_policy_db.cpp
@@
-345,7
+345,7
@@
std::vector<gid_t>* NaivePolicyDb::getGroups(uid_t uid, gid_t gid, const ItemTyp
}
static gid_t mygid = getgid();
- static uid_t myuid = get
g
id();
+ static uid_t myuid = get
u
id();
if (uid == myuid && gid ==mygid)
return (type == ItemType::SEND) ? &mapSendGroup[uid] : &mapRecvGroup[uid];