summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2014-09-20 16:34:31 +0200
committerDaniel Mack <daniel@zonque.org>2014-09-20 18:47:45 +0200
commitc3502b59ec4e58a877003050e6c2fc668eee3129 (patch)
tree2059d753a7b1fb596246a6b478da8070527238df
parente7eb49db071f9aab2a9bad0660962f2aa4d0c7d1 (diff)
bus_policy: set i->[ug]id_valid
-rw-r--r--src/bus-proxyd/bus-policy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bus-proxyd/bus-policy.c b/src/bus-proxyd/bus-policy.c
index eed542d8f8..2c4708dd77 100644
--- a/src/bus-proxyd/bus-policy.c
+++ b/src/bus-proxyd/bus-policy.c
@@ -364,6 +364,7 @@ static int file_load(Policy *p, const char *path) {
first = hashmap_get(p->user_items, UINT32_TO_PTR(i->uid));
item_append(i, &first);
+ i->uid_valid = true;
r = hashmap_replace(p->user_items, UINT32_TO_PTR(i->uid), first);
if (r < 0) {
@@ -395,6 +396,7 @@ static int file_load(Policy *p, const char *path) {
first = hashmap_get(p->group_items, UINT32_TO_PTR(i->gid));
item_append(i, &first);
+ i->gid_valid = true;
r = hashmap_replace(p->group_items, UINT32_TO_PTR(i->gid), first);
if (r < 0) {