From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Dec 8 17:40:12 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 23CFD16A4D0 for ; Wed, 8 Dec 2004 17:40:12 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E652E43D6D for ; Wed, 8 Dec 2004 17:40:11 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iB8HeBLM079407 for ; Wed, 8 Dec 2004 17:40:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iB8HeBQM079406; Wed, 8 Dec 2004 17:40:11 GMT (envelope-from gnats) Resent-Date: Wed, 8 Dec 2004 17:40:11 GMT Resent-Message-Id: <200412081740.iB8HeBQM079406@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Gordon Burditt Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 737DC16A4CE for ; Wed, 8 Dec 2004 17:39:25 +0000 (GMT) Received: from hammy.burditt.org (hammy.burditt.org [206.138.224.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 318BC43D62 for ; Wed, 8 Dec 2004 17:39:25 +0000 (GMT) (envelope-from gordon@hammy.burditt.org) Received: from gordon by hammy.burditt.org with local (Exim 4.43 (FreeBSD)) id 1Cc5md-000IkE-Nb; Wed, 08 Dec 2004 11:39:23 -0600 Message-Id: Date: Wed, 08 Dec 2004 11:39:23 -0600 From: Gordon Burditt Sender: Gordon Burditt To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: gordon@burditt.org Subject: ports/74857: clamav socket problem X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Gordon Burditt List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Dec 2004 17:40:12 -0000 >Number: 74857 >Category: ports >Synopsis: clamav socket problem >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Dec 08 17:40:11 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Gordon Burditt >Release: FreeBSD 4.9-STABLE i386 >Organization: >Environment: System: FreeBSD hammy.burditt.org 4.9-STABLE FreeBSD 4.9-STABLE #7: Sat Nov 22 14:13:11 CST 2003 gordon@hammy.burditt.org:/scratch5/i386-obj/usr/src/sys/HAMMY i386 FreeBSD 4.9, clamav port 0.80_1 >Description: When used with Exim, clamd repeatedly reports "client disconnected", while Exim reports it is unable to read from the socket (no such file or directory). Some scanning is done properly, though. >How-To-Repeat: I just used the same setup with Exim and exiscan to scan mail through clamd that I have used previously with clamav 0.74, which did not show the problem. >Fix: The problem appears to be is_fd_connected(), which is falsely indicating the socket is disconnected, causing clamd to emit the "client disconnected" message, and it closes the socket, causing Exim to complain about reading the response back. I stuck a "return 1;" in is_fd_connected() so it ALWAYS returns 1. This fixed the problem. Obviously it is not a very clean fix. Note: clamav-config.h has HAVE_POLL defined as 1 and HAVE_POLL_H undefined, so is_fd_connected() is using the select() version of the code. Gordon L. Burditt >Release-Note: >Audit-Trail: >Unformatted: