From: Lennart Poettering Date: Wed, 22 Jun 2016 23:29:33 +0000 (+0200) Subject: core: when writing transient unit files, make sure all lines end with a newline X-Git-Tag: v231~128^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fc40065bcd098447bf570d3d71950f0435966978;p=thirdparty%2Fsystemd.git core: when writing transient unit files, make sure all lines end with a newline This is a fix-up for 2a9a6f8ac04a69ca36d645f9305a33645f22a22b which covered non-transient units, but missed the case for transient units. --- diff --git a/src/core/unit.c b/src/core/unit.c index 581962eba65..0a1a5321df1 100644 --- a/src/core/unit.c +++ b/src/core/unit.c @@ -3364,6 +3364,7 @@ int unit_write_drop_in(Unit *u, UnitSetPropertiesMode mode, const char *name, co /* When this is a transient unit file in creation, then let's not create a new drop-in but instead * write to the transient unit file. */ fputs(data, u->transient_file); + fputc('\n', u->transient_file); return 0; }