diff options
author | spz <spz@pkgsrc.org> | 2013-11-27 10:02:55 +0000 |
---|---|---|
committer | spz <spz@pkgsrc.org> | 2013-11-27 10:02:55 +0000 |
commit | a10dab0d717e2dc841bb0852337af2d258307862 (patch) | |
tree | a934adccb20beba5993a2a55f6dbd2bd178a869e | |
parent | f3eec5261fe7e88f2fe7cdb62cd9c07edf12ccbd (diff) | |
download | pkgsrc-a10dab0d717e2dc841bb0852337af2d258307862.tar.gz |
a small issue with 64bit time_t that leads to crashes in
news.daily, respectively on 'ctlinnd name ""' when peers are connected.
-rw-r--r-- | news/inn/Makefile | 4 | ||||
-rw-r--r-- | news/inn/distinfo | 3 | ||||
-rw-r--r-- | news/inn/patches/patch-innd_cc.c | 16 |
3 files changed, 20 insertions, 3 deletions
diff --git a/news/inn/Makefile b/news/inn/Makefile index 51c007e6c94..8d20bb2b167 100644 --- a/news/inn/Makefile +++ b/news/inn/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.113 2013/06/16 21:42:00 wiz Exp $ +# $NetBSD: Makefile,v 1.114 2013/11/27 10:02:55 spz Exp $ DISTNAME= inn-2.5.3 -PKGREVISION= 3 +PKGREVISION= 4 CATEGORIES= news MASTER_SITES= ftp://ftp.isc.org/isc/inn/ \ ftp://ftp.fu-berlin.de/unix/news/inn/ diff --git a/news/inn/distinfo b/news/inn/distinfo index 1fb82c93592..3b0aee153c0 100644 --- a/news/inn/distinfo +++ b/news/inn/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.30 2013/06/16 21:41:47 wiz Exp $ +$NetBSD: distinfo,v 1.31 2013/11/27 10:02:55 spz Exp $ SHA1 (inn-2.5.3.tar.gz) = 98f22ef02e48c28f5eb931ce506ebe99557dc46e RMD160 (inn-2.5.3.tar.gz) = 7c4593d8880426a8961befbfa600450b23482d35 @@ -12,3 +12,4 @@ SHA1 (patch-ah) = ed5ef5f504eb9a95ad3da933ba5d00ee73885b00 SHA1 (patch-ai) = cf0af9de01dc7e06c5f9f7f1dd91ac2201e8c212 SHA1 (patch-ak) = c15b9067eeff701a7f2cc443fe6d1cb89136d974 SHA1 (patch-al) = a3d9fad5c045dc7a240e0f0c0a88a5321e6135d5 +SHA1 (patch-innd_cc.c) = ee94cd8c27365d5b6724e81261df00d2337e6172 diff --git a/news/inn/patches/patch-innd_cc.c b/news/inn/patches/patch-innd_cc.c new file mode 100644 index 00000000000..4f10a625d57 --- /dev/null +++ b/news/inn/patches/patch-innd_cc.c @@ -0,0 +1,16 @@ +$NetBSD: patch-innd_cc.c,v 1.1 2013/11/27 10:02:55 spz Exp $ + +make sure the resulting type is long and not time_t, which would require +%lld with 64bit time_t. + +--- innd/cc.c.orig 2012-06-15 18:25:36.000000000 +0000 ++++ innd/cc.c +@@ -940,7 +940,7 @@ CCname(char *av[]) + mode = (cp->MaxCnx > 0 && cp->ActiveCnx == 0) ? "paused" : ""; + buffer_sprintf(&CCreply, true, ":%s:%ld:%s", + cp->State == CScancel ? "cancel" : "nntp", +- (long) Now.tv_sec - cp->LastActive, mode); ++ (long) (Now.tv_sec - cp->LastActive), mode); + break; + case CTlocalconn: + buffer_sprintf(&CCreply, true, ":localconn::"); |