diff --git a/gio/gdbusaddress.c b/gio/gdbusaddress.c index 6d519a3f4..5dcbf9523 100644 --- a/gio/gdbusaddress.c +++ b/gio/gdbusaddress.c @@ -1286,7 +1286,7 @@ g_dbus_address_get_for_bus_sync (GBusType bus_type, GCancellable *cancellable, GError **error) { - gboolean is_setuid = GLIB_PRIVATE_CALL (g_check_setuid) (); + gboolean has_elevated_privileges = GLIB_PRIVATE_CALL (g_check_setuid) (); gchar *ret, *s = NULL; const gchar *starter_bus; GError *local_error; @@ -1330,7 +1330,7 @@ g_dbus_address_get_for_bus_sync (GBusType bus_type, switch (bus_type) { case G_BUS_TYPE_SYSTEM: - if (is_setuid) + if (has_elevated_privileges) ret = NULL; else ret = g_strdup (g_getenv ("DBUS_SYSTEM_BUS_ADDRESS")); @@ -1342,7 +1342,7 @@ g_dbus_address_get_for_bus_sync (GBusType bus_type, break; case G_BUS_TYPE_SESSION: - if (is_setuid) + if (has_elevated_privileges) ret = NULL; else ret = g_strdup (g_getenv ("DBUS_SESSION_BUS_ADDRESS"));