File 0001-zoneinfo-update-TZ-file-header-and-body-comment.patch of Package syslog-ng.12645

From 798a7eca11912a911a76f2323cdc72585fecf648 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?L=C3=A1szl=C3=B3=20V=C3=A1rady?= <laszlo.varady@balabit.com>
Date: Sat, 31 Aug 2019 00:29:17 +0200
Subject: [PATCH 1/4] zoneinfo: update TZ file header and body comment
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Based on tzcode 2019b.

Signed-off-by: László Várady <laszlo.varady@balabit.com>
(cherry picked from commit 05e37da86788c03322776183f5173b577b31368d)
---
 lib/timeutils.c | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/lib/timeutils.c b/lib/timeutils.c
index 644d6c9a0..35b11686f 100644
--- a/lib/timeutils.c
+++ b/lib/timeutils.c
@@ -384,9 +384,9 @@ determine_year_for_month(gint month, const struct tm *now)
  *  struct tzhead
  *    {
  *       char    tzh_magic[4];            TZ_MAGIC "TZif"
- *       char    tzh_version[1];          '\0' or '2' as of 2005
+ *       char    tzh_version[1];          '\0' or '2' or '3' as of 2013
  *       char    tzh_reserved[15];        reserved--must be zero
- *       char    tzh_ttisgmtcnt[4];       coded number of trans. time flags
+ *       char    tzh_ttisutcnt[4];        coded number of trans. time flags
  *       char    tzh_ttisstdcnt[4];       coded number of trans. time flags
  *       char    tzh_leapcnt[4];          coded number of leap seconds
  *       char    tzh_timecnt[4];          coded number of transition times
@@ -399,17 +399,18 @@ determine_year_for_month(gint month, const struct tm *now)
  *      tzh_timecnt (char [4])s         coded transition times a la time(2)
  *      tzh_timecnt (unsigned char)s    types of local time starting at above
  *      tzh_typecnt repetitions of
- *              one (char [4])          coded UTC offset in seconds
+ *              one (char [4])          coded UT offset in seconds
  *              one (unsigned char)     used to set tm_isdst
  *              one (unsigned char)     that's an abbreviation list index
  *      tzh_charcnt (char)s             '\0'-terminated zone abbreviations
  *      tzh_leapcnt repetitions of
  *              one (char [4])          coded leap second transition times
  *              one (char [4])          total correction after above
- *      tzh_ttisstdcnt (char)s          indexed by type; if TRUE, transition time is standard time, if FALSE, transition time is wall clock time if absent,
+ *      tzh_ttisstdcnt (char)s          indexed by type; if TRUE, transition time is standard time, if FALSE, transition time is wall clock time; if absent,
  *                                      transition times are assumed to be wall clock time
- *      tzh_ttisgmtcnt (char)s          indexed by type; if TRUE, transition time is UTC, if FALSE, transition time is local time if absent,
- *                                      transition times are assumed to be local time
+ *      tzh_ttisutcnt (char)s           indexed by type; if TRUE, transition time is UT, if FALSE, transition time is local time; if absent,
+ *                                      transition times are assumed to be local time.
+ *                                      When this is TRUE, the corresponding std/wall indicator must also be 1.
  */
 
 /*
-- 
2.16.4

openSUSE Build Service is sponsored by