X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcore%2Funit.c;h=a0d36569a885f93f486f04e59aafdd30dfd7b279;hp=91a00edf7196ab58dfcee3f03099102d31dcc895;hb=7f602784de4fd378120e8ebfe6d830862b9cae03;hpb=2875e22b65452896d5569eecb3a08265dd658173 diff --git a/src/core/unit.c b/src/core/unit.c index 91a00edf7..a0d36569a 100644 --- a/src/core/unit.c +++ b/src/core/unit.c @@ -2910,7 +2910,7 @@ int unit_write_drop_in(Unit *u, bool runtime, const char *name, const char *data return r; mkdir_p(p, 0755); - return write_one_line_file_atomic_label(q, data); + return write_string_file_atomic_label(q, data); } int unit_remove_drop_in(Unit *u, bool runtime, const char *name) {