summaryrefslogtreecommitdiff
path: root/src/core/dbus-unit.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-07-11 21:03:06 +0200
committerLennart Poettering <lennart@poettering.net>2013-07-11 21:03:06 +0200
commit665f8316f435772ed539be5e164a85cd188f84b4 (patch)
tree91af626415503020392cb16dd1af27d66a14a60d /src/core/dbus-unit.c
parent8e7076caae32a560a11c1643b53fc4f12db4a6b1 (diff)
core: when writing drop-in files, name them directly after the property we set
Mapping from "FooBar" to "foo-bar" is unnecessary and makes it hard to handle many different properties with the same code, hence, let's just not do it.
Diffstat (limited to 'src/core/dbus-unit.c')
-rw-r--r--src/core/dbus-unit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/dbus-unit.c b/src/core/dbus-unit.c
index 57fac00d19..5814971b8c 100644
--- a/src/core/dbus-unit.c
+++ b/src/core/dbus-unit.c
@@ -807,7 +807,7 @@ static int bus_unit_set_transient_property(
if (!contents)
return -ENOMEM;
- unit_write_drop_in(u, mode, "Description", contents);
+ unit_write_drop_in(u, mode, name, contents);
}
return 1;
@@ -841,7 +841,7 @@ static int bus_unit_set_transient_property(
if (!contents)
return -ENOMEM;
- unit_write_drop_in(u, mode, "Slice", contents);
+ unit_write_drop_in(u, mode, name, contents);
}
return 1;