chiark / gitweb /
bus-policy: story mandatory items in right list
authorDaniel Mack <daniel@zonque.org>
Fri, 19 Sep 2014 15:50:41 +0000 (17:50 +0200)
committerDaniel Mack <daniel@zonque.org>
Sat, 20 Sep 2014 16:47:45 +0000 (18:47 +0200)
src/bus-proxyd/bus-policy.c

index d2eace9..8676d31 100644 (file)
@@ -332,7 +332,7 @@ static int file_load(Policy *p, const char *path) {
                                 if (policy_category == POLICY_CATEGORY_DEFAULT)
                                         LIST_PREPEND(items, p->default_items, i);
                                 else if (policy_category == POLICY_CATEGORY_MANDATORY)
-                                        LIST_PREPEND(items, p->default_items, i);
+                                        LIST_PREPEND(items, p->mandatory_items, i);
                                 else if (policy_category == POLICY_CATEGORY_USER) {
                                         const char *u = policy_user;