From: Patrick Oppenlander <patrick.oppenlan...@gmail.com>

Hi,

while testing chrony on an aarch64/musl system I noticed that the UTC-TAI
offset wasn't being set.

Turns out that chrony currently relies on some implementation defined C library
behaviour in get_tz_leap() leading to it rejecting the 'leapsectz right/UTC'
directive on musl based systems.

I think this is for two reasons:
1. musl doesn't support right/* timezones[1]
2. musl does not include leap second information (i.e. 60, or skip 59)
   in the tm_sec field of struct tm[2]

I've included a patch which adds support for reading leap-seconds.list and
using it as as another source of leap second information.

Patrick

[1] https://skarnet.org/lists/skaware/0089.html
[2] https://git.musl-libc.org/cgit/musl/tree/src/time/__secs_to_tm.c#n79

Patrick Oppenlander (1):
  reference: support leap-seconds.list as leap second source

 conf.c               |  14 ++++
 conf.h               |   1 +
 doc/chrony.conf.adoc |  19 ++++-
 reference.c          | 162 +++++++++++++++++++++++++++++++++++++++++--
 4 files changed, 188 insertions(+), 8 deletions(-)

-- 
2.43.0


-- 
To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" 
in the subject.
For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the 
subject.
Trouble?  Email listmas...@chrony.tuxfamily.org.

Reply via email to