Skip to contentSkip to conversation

tools/test-runner: Fix not creating /usr/share/dbus-1/system.conf

PATCH Applied Luiz Augusto von Dentz 1 participant 2 messages Dec 19, 2016 – Dec 20, 2016 Bluetooth drivers

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/1 tools/test-runner: Fix not creating /usr/share/dbus-1/system.conf

From: Luiz Augusto von Dentz <[email protected]>

Apparently this is the new location where D-Bus will look for its configuration so just creare a symlink to /etc/dbus-1/system.conf.

---
 tools/test-runner.c | 4 ++++
 1 file changed, 4 insertions(+)
tools/test-runner.c +4 -0
index 9b54426..fb8f7e2 100644
@@ -419,6 +419,10 @@ static void create_dbus_system_conf(void)
 
 	fclose(fp);
 
+	if (symlink("/etc/dbus-1/system.conf",
+				"/usr/share/dbus-1/system.conf") < 0)
+		perror("Failed to create system.conf symlink");
+
 	mkdir("/run/dbus", 0755);
 }
 
Signature · 1 line
2.9.3
author maintainer Applied
#1 lore raw

Hi,

Quoted 24 lines · Luiz Augusto von Dentz

From: Luiz Augusto von Dentz <[email protected]>

Apparently this is the new location where D-Bus will look for its configuration so just creare a symlink to /etc/dbus-1/system.conf.

---
 tools/test-runner.c | 4 ++++
 1 file changed, 4 insertions(+)
tools/test-runner.c +4 -1
index 9b54426..fb8f7e2 100644
@@ -419,6 +419,10 @@ static void create_dbus_system_conf(void)
 
        fclose(fp);
 
+       if (symlink("/etc/dbus-1/system.conf",
+                               "/usr/share/dbus-1/system.conf") < 0)
+               perror("Failed to create system.conf symlink");
+
        mkdir("/run/dbus", 0755);
 }
 
--
Quoted 1 line

2.9.3

Applied.

Signature · 1 line
Luiz Augusto von Dentz