diff --git a/src/sysusers/sysusers.c b/src/sysusers/sysusers.c index 558df57b88..685b9618a9 100644 --- a/src/sysusers/sysusers.c +++ b/src/sysusers/sysusers.c @@ -509,7 +509,7 @@ static int write_temporary_passwd(const char *passwd_path, FILE **tmpfile, char break; } - r = fflush_and_check(passwd); + r = fflush_sync_and_check(passwd); if (r < 0) return log_debug_errno(r, "Failed to flush %s: %m", passwd_tmp);