--- dbus-sysdeps-unix.c.orig	Tue Jan  2 02:12:16 2007
+++ dbus-sysdeps-unix.c	Tue Jan  2 02:12:52 2007
@@ -1290,6 +1290,7 @@
                       info->primary_gid,
                       buf, &buf_count) < 0)
       {
+	buf_count = getgroups(0,NULL)+1;
         gid_t *new = dbus_realloc (buf, buf_count * sizeof (buf[0]));
         if (new == NULL)
           {
