[master] 5a4036423 Explicitly call tzset(3) because localtime_r(3) was documented by morons.
Poul-Henning Kamp
phk at FreeBSD.org
Mon Oct 22 07:50:19 UTC 2018
commit 5a4036423d90e140d86aaede412012a0e82963df
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Oct 22 07:15:36 2018 +0000
Explicitly call tzset(3) because localtime_r(3) was documented by morons.
diff --git a/bin/varnishncsa/varnishncsa.c b/bin/varnishncsa/varnishncsa.c
index c92b0a317..50631446f 100644
--- a/bin/varnishncsa/varnishncsa.c
+++ b/bin/varnishncsa/varnishncsa.c
@@ -1173,6 +1173,8 @@ main(int argc, char * const *argv)
AN(CTX.vsb);
VB64_init();
+ tzset(); // We use localtime_r(3)
+
while ((opt = getopt(argc, argv, vopt_spec.vopt_optstring)) != -1) {
switch (opt) {
case 'a':
More information about the varnish-commit
mailing list