sysusers: be nice and print a warning if futimens() fails

CID# 1251163
This commit is contained in:
Lennart Poettering
2014-11-07 16:34:37 +01:00
parent 144b3d9e09
commit f06863bde5

View File

@@ -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;