diff options
author | joerg <joerg> | 2015-02-19 22:24:24 +0000 |
---|---|---|
committer | joerg <joerg> | 2015-02-19 22:24:24 +0000 |
commit | f9ec0936b7eb01eda1e80307b723ae8efef6b901 (patch) | |
tree | 90345d08e9e2755f08c8c83935261f13aec05eaa /chat | |
parent | 64eee803127f125e45cb6c368046f37d7dd843e0 (diff) | |
download | pkgsrc-f9ec0936b7eb01eda1e80307b723ae8efef6b901.tar.gz |
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.
Diffstat (limited to 'chat')
-rw-r--r-- | chat/anope/Makefile | 4 | ||||
-rw-r--r-- | chat/anope/distinfo | 3 | ||||
-rw-r--r-- | chat/anope/patches/patch-src_tools_anopesmtp.c | 29 |
3 files changed, 33 insertions, 3 deletions
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; + } |