chiark / gitweb /
fileio.c: fix incorrect mtime
authorChris Lesiak <chris.lesiak@licor.com>
Tue, 24 Apr 2018 14:50:42 +0000 (09:50 -0500)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
commit85faeee71899e061f7ccc2360ff4a7a250e83c95
tree0a38f082d32fcde975888e23dcd31b77c1ae344e
parent047e7ea06ef10bbf8df8e565b2ed3e0cdedf6e9a
fileio.c: fix incorrect mtime

A regression was introduced that caused the mtime of /etc/.updated
and /var/.updated to be the current time when systemd-update-done
ran instead of being copied from /usr.

This was nearly fixed, but due to fflush being called after mtime
was carefully set, it was overwritten with the current time.

Regression introduced in 872c40396384f9fa89b01baf4e739d28ed590299

A fix was just missed in 39c38d773fbe2b4f76ff29ecd3344640efb9a86c

Fixes #8806
src/basic/fileio.c