mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-07 02:05:07 -05:00
leapdb: support leap-seconds.list as second source
The existing implementation of getting leap second information from a timezone in get_tz_leap() relies on non-portable C library behaviour. Specifically, mktime is not required to return '60' in the tm_sec field when a leap second is inserted leading to "Timezone right/UTC failed leap second check, ignoring" errors on musl based systems. This patch adds support for getting leap second information from the leap-seconds.list file included with tzdata and adds a new configuration directive leapseclist to switch on the feature.
This commit is contained in:
committed by
Miroslav Lichvar
parent
83f90279b0
commit
53823b9f1c
1
conf.h
1
conf.h
@@ -91,6 +91,7 @@ extern char *CNF_GetNtpSigndSocket(void);
|
||||
extern char *CNF_GetPidFile(void);
|
||||
extern REF_LeapMode CNF_GetLeapSecMode(void);
|
||||
extern char *CNF_GetLeapSecTimezone(void);
|
||||
extern char *CNF_GetLeapSecList(void);
|
||||
|
||||
/* Value returned in ppm, as read from file */
|
||||
extern double CNF_GetMaxUpdateSkew(void);
|
||||
|
||||
Reference in New Issue
Block a user