Page MenuHomeFreeBSD

D53502.id165589.diff
No OneTemporary

D53502.id165589.diff

diff --git a/contrib/tzcode/localtime.c b/contrib/tzcode/localtime.c
--- a/contrib/tzcode/localtime.c
+++ b/contrib/tzcode/localtime.c
@@ -1583,15 +1583,16 @@
struct timespec now;
if (clock_gettime(CLOCK_MONOTONIC, &now) < 0)
- return 0;
+ return 1;
- if ((now.tv_sec - last_checked >= __tz_change_interval) ||
+ if (last_checked == 0 ||
+ (now.tv_sec - last_checked >= __tz_change_interval) ||
(last_checked > now.tv_sec)) {
last_checked = now.tv_sec;
- return 1;
+ return 0;
}
- return 0;
+ return 1;
}
#endif /* DETECT_TZ_CHANGES */
@@ -1642,7 +1643,7 @@
? lcl_is_set < 0
: 0 < lcl_is_set && strcmp(lcl_TZname, name) == 0)
#ifdef DETECT_TZ_CHANGES
- if (tzdata_is_fresh() == 0)
+ if (tzdata_is_fresh())
#endif /* DETECT_TZ_CHANGES */
return;
# ifdef ALL_STATE

File Metadata

Mime Type
text/plain
Expires
Tue, Apr 28, 5:58 AM (3 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32254391
Default Alt Text
D53502.id165589.diff (825 B)

Event Timeline