]> git.ipfire.org Git - thirdparty/systemd.git/commit
timesyncd: only update stamp file when we are synchronized
authorKay Sievers <kay@vrfy.org>
Thu, 22 May 2014 12:31:46 +0000 (21:31 +0900)
committerKay Sievers <kay@vrfy.org>
Sat, 24 May 2014 00:04:56 +0000 (08:04 +0800)
commitd636d376796ec61c1c14fa619c80d4ac62e08a19
treedd32fcbe307c6defcf36e18890ce20810e951607
parentc38dfac9ed6c1c3beb3dd88ebf82a13d1e561ff8
timesyncd: only update stamp file when we are synchronized

Create initial stamp file with compiled-in time to prevent bootups
with clocks in the future from storing invalid timestamps.

At shutdown, only update the timestamp if we got an authoritative
time to store.
src/shared/clock-util.c
src/timesync/timesyncd.c
src/timesync/timesyncd.h
units/systemd-timesyncd.service.in