From b1a6ba7dc53436f2f309b9f972b567d480cfb8ca Mon Sep 17 00:00:00 2001 From: joerg Date: Thu, 19 Feb 2015 22:24:24 +0000 Subject: It is not portable to convert va_list to boolean value and certainly won't do the right thing on platforms where it is valid. Bump revision. --- chat/anope/Makefile | 4 ++-- chat/anope/distinfo | 3 ++- chat/anope/patches/patch-src_tools_anopesmtp.c | 29 ++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 chat/anope/patches/patch-src_tools_anopesmtp.c diff --git a/chat/anope/Makefile b/chat/anope/Makefile index 47e46f8f351..50757820ba7 100644 --- a/chat/anope/Makefile +++ b/chat/anope/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.15 2014/05/29 23:35:17 wiz Exp $ +# $NetBSD: Makefile,v 1.16 2015/02/19 22:24:24 joerg Exp $ DISTNAME= anope-1.7.21 -PKGREVISION= 5 +PKGREVISION= 6 CATEGORIES= chat MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=anope/} diff --git a/chat/anope/distinfo b/chat/anope/distinfo index 9f362be59bf..b5aff507c7c 100644 --- a/chat/anope/distinfo +++ b/chat/anope/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.7 2012/07/03 18:18:20 joerg Exp $ +$NetBSD: distinfo,v 1.8 2015/02/19 22:24:24 joerg Exp $ SHA1 (anope-1.7.21.tar.gz) = 1a8c845fcfd6351a4225fc8e38bb6e90f5201a4b RMD160 (anope-1.7.21.tar.gz) = ac2b22d60e6be2e7ea02e933fc005c5b3b206180 @@ -10,3 +10,4 @@ SHA1 (patch-ad) = 7b64822e486fa8673db8e47edc9b86c7183505c7 SHA1 (patch-ae) = 6c02aaa1d809e113338d35b672911269c1932d29 SHA1 (patch-af) = 1d874c5be0f624f2c83bd6d66be0ddc4ce29d3fe SHA1 (patch-configure) = c151c6a87b04ecb35dc54b98425ad0027d70ea66 +SHA1 (patch-src_tools_anopesmtp.c) = 4322ba9479dad29898c58f8ed9b66e0f3f373487 diff --git a/chat/anope/patches/patch-src_tools_anopesmtp.c b/chat/anope/patches/patch-src_tools_anopesmtp.c new file mode 100644 index 00000000000..c5c537f915e --- /dev/null +++ b/chat/anope/patches/patch-src_tools_anopesmtp.c @@ -0,0 +1,29 @@ +$NetBSD: patch-src_tools_anopesmtp.c,v 1.1 2015/02/19 22:24:24 joerg Exp $ + +--- src/tools/anopesmtp.c.orig 2015-02-19 19:29:39.000000000 +0000 ++++ src/tools/anopesmtp.c +@@ -144,7 +144,8 @@ void alog(const char *fmt, ...) + + checkday(); + +- if (!fmt) { ++ if (!fmt || !logfile) { ++ errno = errno_save; + return; + } + +@@ -152,11 +153,9 @@ void alog(const char *fmt, ...) + time(&t); + tm = *localtime(&t); + strftime(buf, sizeof(buf) - 1, "[%b %d %H:%M:%S %Y] ", &tm); +- if (logfile && args) { +- fputs(buf, logfile); +- vfprintf(logfile, fmt, args); +- fputc('\n', logfile); +- } ++ fputs(buf, logfile); ++ vfprintf(logfile, fmt, args); ++ fputc('\n', logfile); + va_end(args); + errno = errno_save; + } -- cgit v1.2.3