diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-12-16 21:06:34 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-12-16 21:06:57 +0100 |
commit | 010b2b8d7a694e1e404e35db90e938f6a476bf2f (patch) | |
tree | 46569cb358f12ef791a29d29172e24c7f8c1672f /src | |
parent | 77e96a62476b8df284e19a016ad55e6e3e721fb2 (diff) |
bus: also mask dbus.service in generator if kdbus is found
Diffstat (limited to 'src')
-rw-r--r-- | src/dbus1-generator/dbus1-generator.c | 6 |
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; } |