diff --git a/src/sysusers/sysusers.c b/src/sysusers/sysusers.c index dfb703f10e..9c1abf984e 100644 --- a/src/sysusers/sysusers.c +++ b/src/sysusers/sysusers.c @@ -507,7 +507,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);