X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Funit.c;h=a0d36569a885f93f486f04e59aafdd30dfd7b279;hb=574d5f2dfc25226afc718aa5ba1a145fe5cad221;hp=91a00edf7196ab58dfcee3f03099102d31dcc895;hpb=2875e22b65452896d5569eecb3a08265dd658173;p=elogind.git 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) {