[at-spi2-core] Bus launcher: escape socket name before passing to dbus-daemon



commit 7e4ba09e67d15e3ff8f84a473400f66d50a56799
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 b695fb68..30cdad7e 100644
--- a/bus/at-spi-bus-launcher.c
+++ b/bus/at-spi-bus-launcher.c
@@ -321,7 +321,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]