]> git.ipfire.org Git - thirdparty/systemd.git/commit
timedate: handle gracefully if RTC lost time because of power loss
authorLennart Poettering <lennart@poettering.net>
Fri, 19 Apr 2024 17:20:40 +0000 (19:20 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 20 Apr 2024 00:15:07 +0000 (09:15 +0900)
commit5c81de98fcb533c0889ed6c6f6cd8640bb626360
treee87696b9b397fdd09c4ac4379eade05f6176f59b
parentbf49f3bb441b58c40b3e595bc5a5561051719d1c
timedate: handle gracefully if RTC lost time because of power loss

Apparently some RTC drivers return EINVAL in that case when we try to
read it. Handle that reasonably gracefully.

Fixes: #31854
src/shared/clock-util.c
src/timedate/timedated.c