summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-05-15 14:34:33 +0200
committerLennart Poettering <lennart@poettering.net>2012-05-15 14:35:51 +0200
commit03ad1136ba6ddaeca626aa24362dab764c7e2398 (patch)
treece6974472210b41e157861de54a475e7cd9718fd /src/shared
parent04fb63514d1c98fdf9c9549639a1f6d9812444ac (diff)
tmpfiles: if we are supposed to write a string to a file, it's OK if we can't write the trailing newline
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/util.c b/src/shared/util.c
index d6af927453..0b81e1c4f9 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -597,7 +597,8 @@ int write_one_line_file(const char *fn, const char *line) {
assert(fn);
assert(line);
- if (!(f = fopen(fn, "we")))
+ f = fopen(fn, "we");
+ if (!f)
return -errno;
errno = 0;