Subject: Re: pkg/36853: clamav-milter doesn't start - _res is not supported for multi-threaded programs.
To: None <martti@NetBSD.org, gnats-admin@netbsd.org,>
From: Todd Kover <kovert@omniscient.com>
List: pkgsrc-bugs
Date: 09/17/2007 15:10:03
The following reply was made to PR pkg/36853; it has been noted by GNATS.
From: Todd Kover <kovert@omniscient.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/36853: clamav-milter doesn't start - _res is not supported for multi-threaded programs.
Date: Mon, 17 Sep 2007 11:06:42 -0400
------- =_aaaaaaaaaa0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <5452.1190041594.1@guinness.omniscient.com>
The attached patch works around this. The milter is checking to see
if the resolver initialization succeeded by looking at _res, I simply
disabled that check.
-Todd
------- =_aaaaaaaaaa0
Content-Type: text/plain; name="patch.36853.txt"; charset="us-ascii"
Content-ID: <5452.1190041594.2@guinness.omniscient.com>
--- clamav-0.91.2/clamav-milter/clamav-milter.c 2007-09-17 10:54:02.000000000 -0400
+++ clamav-0.91.2/clamav-milter/clamav-milter.c.orig 2007-09-17 10:53:51.000000000 -0400
@@ -2044,14 +2044,12 @@
logg(_("Starting %s\n"), clamav_version);
logg(_("*Debugging is on\n"));
-#if 0
if(!(_res.options&RES_INIT))
if(res_init() < 0) {
fprintf(stderr, "%s: Can't initialise the resolver\n",
argv[0]);
return EX_UNAVAILABLE;
}
-#endif
if(blacklist_time) {
char name[MAXHOSTNAMELEN + 1];
------- =_aaaaaaaaaa0--