summaryrefslogtreecommitdiff
path: root/src/core/dbus-service.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/dbus-service.c')
-rw-r--r--src/core/dbus-service.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/dbus-service.c b/src/core/dbus-service.c
index b636f8ba6a..fe2a4a3b37 100644
--- a/src/core/dbus-service.c
+++ b/src/core/dbus-service.c
@@ -243,7 +243,9 @@ static int bus_service_set_transient_property(
a);
}
- fflush(f);
+ r = fflush_and_check(f);
+ if (r < 0)
+ return r;
unit_write_drop_in_private(UNIT(s), mode, name, buf);
}