From 1f2f874c3c0e0f4cee7688ee59e2fde669626bc3 Mon Sep 17 00:00:00 2001 From: Nicolas Cornu Date: Wed, 21 Oct 2015 18:17:12 +0200 Subject: core dbus: Check that flush works with memstream --- src/core/dbus-service.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/core/dbus-service.c') 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); } -- cgit v1.2.3-54-g00ecf