[at-spi2-core/gnome-41: 5/14] Bus launcher: escape socket name before passing to dbus-daemon




commit 9e221fbea8d10ea0374da25890687ecf7173e383
Author: Mike Gorse <mgorse suse com>
Date:   Tue Jan 4 11:02:35 2022 -0600

    Bus launcher: escape socket name before passing to dbus-daemon
    
    Fixes #48

 bus/at-spi-bus-launcher.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/bus/at-spi-bus-launcher.c b/bus/at-spi-bus-launcher.c
index b253076e..4f154f19 100644
--- a/bus/at-spi-bus-launcher.c
+++ b/bus/at-spi-bus-launcher.c
@@ -312,7 +312,9 @@ ensure_a11y_bus_daemon (A11yBusLauncher *app, char *config_path)
 
   if (app->socket_name)
     {
+      gchar *escaped_address = g_dbus_address_escape_value (app->socket_name);
       address_param = g_strconcat ("--address=unix:path=", app->socket_name, NULL);
+      g_free (escaped_address);
     }
   else
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]