mirror of
https://github.com/systemd/systemd.git
synced 2025-01-25 10:04:04 +03:00
sysusers: be nice and print a warning if futimens() fails
CID# 1251163
This commit is contained in:
parent
144b3d9e09
commit
f06863bde5
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user