summaryrefslogtreecommitdiffstats
path: root/bus/activation.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2003-04-02 00:29:33 +0000
committerHavoc Pennington <hp@redhat.com>2003-04-02 00:29:33 +0000
commitcfa261b49dd9cafb172deae3db22dba0c2e54bf9 (patch)
tree91cd4ef8cc16d8b567a84e6f39af04de5abb3494 /bus/activation.c
parent44ed933284589134603913b05f55ca55e8c5a566 (diff)
2003-04-01 Havoc Pennington <hp@redhat.com>
* bus/config-parser.c, bus/bus.c: implement <servicedir> and <includedir> (at least mostly) * dbus/dbus-sysdeps.c (_dbus_change_identity): set the group ID first, then the user ID
Diffstat (limited to 'bus/activation.c')
-rw-r--r--bus/activation.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/bus/activation.c b/bus/activation.c
index fe069c79..7f3693a0 100644
--- a/bus/activation.c
+++ b/bus/activation.c
@@ -316,12 +316,12 @@ load_directory (BusActivation *activation,
BusActivation*
bus_activation_new (BusContext *context,
const DBusString *address,
- const char **directories,
+ DBusList **directories,
DBusError *error)
{
- int i;
BusActivation *activation;
-
+ DBusList *link;
+
_DBUS_ASSERT_ERROR_IS_CLEAR (error);
activation = dbus_new0 (BusActivation, 1);
@@ -358,12 +358,12 @@ bus_activation_new (BusContext *context,
}
/* Load service files */
- i = 0;
- while (directories[i] != NULL)
+ link = _dbus_list_get_first_link (directories);
+ while (link != NULL)
{
- if (!load_directory (activation, directories[i], error))
+ if (!load_directory (activation, link->data, error))
goto failed;
- ++i;
+ link = _dbus_list_get_next_link (directories, link);
}
return activation;