diff --git a/dbus/dbus-sysdeps.c b/dbus/dbus-sysdeps.c index 04fb8d7..14f4ac9 100644 --- a/dbus/dbus-sysdeps.c +++ b/dbus/dbus-sysdeps.c @@ -184,8 +184,9 @@ _dbus_getenv (const char *varname) { /* Don't respect any environment variables if the current process is * setuid. This is the equivalent of glibc's __secure_getenv(). + * Fix: allow to get the session bus address. */ - if (_dbus_check_setuid ()) + if (_dbus_check_setuid () && strcmp(varname, "DBUS_SESSION_BUS_ADDRESS") != 0) return NULL; return getenv (varname); }