From c5b923dd34a8409cbbfabb9d2ae848f4c387d32d Mon Sep 17 00:00:00 2001 From: Adrian Szyndela Date: Mon, 29 May 2017 13:37:07 +0200 Subject: [PATCH] gkdbus: preserving NUM_UNIX_FDS header field NUM_UNIX_FDS was discarded during sending, but it is needed to handle file descriptors properly in libdbus. It is also preserved by sd-bus. Change-Id: I35ba0535bb7e92748edd51e09085f0321724de2e --- gio/gkdbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/gkdbus.c b/gio/gkdbus.c index 4549dfe..aa39359 100755 --- a/gio/gkdbus.c +++ b/gio/gkdbus.c @@ -3239,6 +3239,7 @@ _g_kdbus_send (GKDBusWorker *worker, case G_DBUS_MESSAGE_HEADER_FIELD_MEMBER: case G_DBUS_MESSAGE_HEADER_FIELD_ERROR_NAME: case G_DBUS_MESSAGE_HEADER_FIELD_DESTINATION: + case G_DBUS_MESSAGE_HEADER_FIELD_NUM_UNIX_FDS: g_variant_builder_add (&builder, "{tv}", key_int, value); /* This is a little bit gross. * @@ -3258,7 +3259,6 @@ _g_kdbus_send (GKDBusWorker *worker, /* We don't send these at all in GVariant format */ case G_DBUS_MESSAGE_HEADER_FIELD_SIGNATURE: - case G_DBUS_MESSAGE_HEADER_FIELD_NUM_UNIX_FDS: continue; default: -- 2.7.4