bus_policy: set i->[ug]id_valid
authorDaniel Mack <daniel@zonque.org>
Sat, 20 Sep 2014 14:34:31 +0000 (16:34 +0200)
committerDaniel Mack <daniel@zonque.org>
Sat, 20 Sep 2014 16:47:45 +0000 (18:47 +0200)
src/bus-proxyd/bus-policy.c

index eed542d8f89ff425a782e8a2310d8bb745120efb..2c4708dd777c0d19d2cbfe6ee2b4a1a2dbe5ace4 100644 (file)
@@ -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) {