]> git.ipfire.org Git - thirdparty/systemd.git/commit
fileio.c: fix incorrect mtime 8807/head
authorChris Lesiak <chris.lesiak@licor.com>
Tue, 24 Apr 2018 14:50:42 +0000 (09:50 -0500)
committerChris Lesiak <chris.lesiak@licor.com>
Tue, 24 Apr 2018 16:18:43 +0000 (11:18 -0500)
commitbe83711c7eb6a09e0d0c529c427cebcae87c0c1f
tree0fa3d21b84a2746efe5b59b030d222f6cc3c526f
parent9dfcc1df0716a68fcef2ca8b2b746c7c551fc048
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