summaryrefslogtreecommitdiff
path: root/src/dbus1-generator
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-16 21:06:34 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-16 21:06:57 +0100
commit010b2b8d7a694e1e404e35db90e938f6a476bf2f (patch)
tree46569cb358f12ef791a29d29172e24c7f8c1672f /src/dbus1-generator
parent77e96a62476b8df284e19a016ad55e6e3e721fb2 (diff)
bus: also mask dbus.service in generator if kdbus is found
Diffstat (limited to 'src/dbus1-generator')
-rw-r--r--src/dbus1-generator/dbus1-generator.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dbus1-generator/dbus1-generator.c b/src/dbus1-generator/dbus1-generator.c
index b0e49bc052..d7ecd7f9a4 100644
--- a/src/dbus1-generator/dbus1-generator.c
+++ b/src/dbus1-generator/dbus1-generator.c
@@ -276,6 +276,12 @@ static int link_compatibility(const char *units) {
return -errno;
}
+ t = strappenda(arg_dest, "/" SPECIAL_DBUS_SERVICE);
+ if (symlink("/dev/null", t) < 0) {
+ log_error("Failed to mask %s: %m", t);
+ return -errno;
+ }
+
return 0;
}