summaryrefslogtreecommitdiff
path: root/bus/connection.c
diff options
context:
space:
mode:
authorTim Dijkstra <tim@famdijkstra.org>2006-12-12 21:24:07 +0000
committerTim Dijkstra <tim@famdijkstra.org>2006-12-12 21:24:07 +0000
commit145fb99b6e0351d92ffd2f85be77b426c89df59b (patch)
tree842a296b17f34ed145cdcbdfb1478ce28f0a7d2f /bus/connection.c
parent1a90c0193042bfc03d56d0f2454e46ec35667f3f (diff)
downloaddbus-145fb99b6e0351d92ffd2f85be77b426c89df59b.tar.gz
commit.msg
Diffstat (limited to 'bus/connection.c')
-rw-r--r--bus/connection.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/bus/connection.c b/bus/connection.c
index df888f47..d063afca 100644
--- a/bus/connection.c
+++ b/bus/connection.c
@@ -31,6 +31,7 @@
#include <dbus/dbus-list.h>
#include <dbus/dbus-hash.h>
#include <dbus/dbus-timeout.h>
+#include <dbus/dbus-userdb.h>
static void bus_connection_remove_transactions (DBusConnection *connection);
@@ -778,24 +779,18 @@ bus_connection_get_groups (DBusConnection *connection,
{
BusConnectionData *d;
unsigned long uid;
- DBusUserDatabase *user_database;
d = BUS_CONNECTION_DATA (connection);
_dbus_assert (d != NULL);
- user_database = bus_context_get_user_database (d->connections->context);
-
*groups = NULL;
*n_groups = 0;
if (dbus_connection_get_unix_user (connection, &uid))
{
- if (!_dbus_user_database_get_groups (user_database,
- uid, groups, n_groups,
- error))
+ if (!_dbus_groups_from_uid (uid, groups, n_groups))
{
- _DBUS_ASSERT_ERROR_IS_SET (error);
_dbus_verbose ("Did not get any groups for UID %lu\n",
uid);
return FALSE;