core/openrdate/ntpleaps.patch
Fredrik Rinnestam e49c5f1012 openrdate: use correct leap datafile
closes FS#1452
2017-08-27 15:34:26 +02:00

13 lines
458 B
Diff

diff -rupN openrdate-1.2-orig/src/ntpleaps.c openrdate-1.2/src/ntpleaps.c
--- openrdate-1.2-orig/src/ntpleaps.c 2008-03-19 19:21:29.000000000 +0100
+++ openrdate-1.2/src/ntpleaps.c 2017-08-27 14:41:55.618929195 +0200
@@ -125,7 +125,7 @@ ntpleaps_read(void)
u_int64_t s;
u_int64_t *l;
- fd = open("/usr/share/zoneinfo/right/UTC", O_RDONLY | O_NDELAY);
+ fd = open("/usr/share/zoneinfo-leaps/UTC", O_RDONLY | O_NDELAY);
if (fd == -1)
return (-1);