mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
gio: remove pointless use of g_unix_socket_address_abstract_names_supported with unix:tmpdir=
There's no point in checking for g_unix_socket_address_abstract_names_supported now that unix:tmpdir= always use non-abstract sockets.
This commit is contained in:
@@ -831,13 +831,8 @@ service_thread_func (gpointer user_data)
|
||||
flags = G_DBUS_SERVER_FLAGS_NONE;
|
||||
|
||||
#ifdef G_OS_UNIX
|
||||
if (g_unix_socket_address_abstract_names_supported ())
|
||||
address = g_strdup ("unix:tmpdir=/tmp/test-dbus-peer");
|
||||
else
|
||||
{
|
||||
tmpdir = g_dir_make_tmp ("test-dbus-peer-XXXXXX", NULL);
|
||||
address = g_strdup_printf ("unix:tmpdir=%s", tmpdir);
|
||||
}
|
||||
tmpdir = g_dir_make_tmp ("test-dbus-peer-XXXXXX", NULL);
|
||||
address = g_strdup_printf ("unix:tmpdir=%s", tmpdir);
|
||||
#else
|
||||
address = g_strdup ("nonce-tcp:");
|
||||
flags |= G_DBUS_SERVER_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS;
|
||||
|
Reference in New Issue
Block a user