]> git.ipfire.org Git - thirdparty/chrony.git/commit
rtc: fix setting time from driftfile when RTC reading fails
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 3 Sep 2015 09:30:09 +0000 (11:30 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 3 Sep 2015 09:42:58 +0000 (11:42 +0200)
commit7d6de7afe680bababef4421250c7af62d643aa14
tree2ee26ca2673088acd76476531112fc34ba7eb4ef
parent67ce6bd279b436b16dcb182ff3da631164ab829f
rtc: fix setting time from driftfile when RTC reading fails

Fix RTC_Linux_TimePreInit() to return 0 when the RTC device can be
opened, but reading its time fails to at least have the time restored
from the driftfile.
rtc_linux.c