File 0001-fix-when-printing-zones-transitioning-at-INT_MAX-in-.patch of Package dateutils

From 1238f9bac1f652a0e28eab1bed66914dedbcd282 Mon Sep 17 00:00:00 2001
From: Sebastian Freundt <freundt@ga-group.nl>
Date: Mon, 3 Apr 2017 12:13:51 +0000
Subject: [PATCH] fix, when printing zones transitioning at INT_MAX in
 datezone(1) use NEVER indicator

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
---
 src/dzone.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/dzone.c b/src/dzone.c
index 4fb7769..968fd06 100644
--- a/src/dzone.c
+++ b/src/dzone.c
@@ -137,8 +137,12 @@ dz_write_nxtr(struct zrng_s r, zif_t z, const char *zn)
 		/* thank god there's another one */
 		struct ztrdtl_s zd = zif_trdtl(z, r.trno + 1);
 
+		if (r.next == INT_MAX) {
+			goto never;
+		}
 		bp += dz_strftr(bp, ep - bp, (struct ztr_s){r.next, zd.offs});
 	} else {
+	never:
 		bp += xstrlcpy(bp, never, bp - ep);
 	}
 
-- 
1.8.5.6