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:
msizanoen1
2022-10-21 21:57:28 +07:00
parent c0a1a3b384
commit 9151fe94cb
4 changed files with 10 additions and 32 deletions

View File

@@ -219,13 +219,8 @@ main (int argc,
if (is_unix)
{
if (g_unix_socket_address_abstract_names_supported ())
tmp_address = g_strdup ("unix:tmpdir=/tmp/gdbus-test-");
else
{
tmpdir = g_dir_make_tmp ("gdbus-test-XXXXXX", NULL);
tmp_address = g_strdup_printf ("unix:tmpdir=%s", tmpdir);
}
tmpdir = g_dir_make_tmp ("gdbus-test-XXXXXX", NULL);
tmp_address = g_strdup_printf ("unix:tmpdir=%s", tmpdir);
}
else
tmp_address = g_strdup ("nonce-tcp:");