summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-06-23 01:29:33 +0200
committerLennart Poettering <lennart@poettering.net>2016-06-23 01:29:33 +0200
commitfc40065bcd098447bf570d3d71950f0435966978 (patch)
treec1f09eaf9085e33e16dd6cb451615b62211c0eef /src/core
parentb09c0bbad831a11e2200a6ebb48908a10ce29305 (diff)
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.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/unit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/unit.c b/src/core/unit.c
index 581962eba6..0a1a5321df 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;
}