diff --git a/src/sysusers/sysusers.c b/src/sysusers/sysusers.c index c133dc5f103..5f5b49dc772 100644 --- a/src/sysusers/sysusers.c +++ b/src/sysusers/sysusers.c @@ -241,7 +241,8 @@ static int make_backup(const char *target, const char *x) { ts[0] = st.st_atim; ts[1] = st.st_mtim; - futimens(fileno(dst), ts); + if (futimens(fileno(dst), ts) < 0) + log_warning("Failed to fix access and modification time of %s: %m", backup); if (rename(temp, backup) < 0) goto fail;