mirror of
https://github.com/systemd/systemd.git
synced 2026-08-04 15:10:33 +00:00
sysusers: be nice and print a warning if futimens() fails
CID# 1251163
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user