Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Feb 2004 15:33:21 -0500 (EST)
From:      Vivek Khera <vivek@khera.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/62601: clamav startup has wrong path to socket
Message-ID:  <200402092033.i19KXLIB005959@lorax.kcilink.com>
Resent-Message-ID: <200402092040.i19KeBlR002371@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         62601
>Category:       ports
>Synopsis:       clamav startup has wrong path to socket
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 09 12:40:11 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Vivek Khera
>Release:        FreeBSD 4.9-RELEASE-p1 i386
>Organization:
>Environment:
System: FreeBSD lorax.kcilink.com 4.9-RELEASE-p1 FreeBSD 4.9-RELEASE-p1 #17: Thu Dec 4 17:12:31 EST 2003 vivek@lorax.kcilink.com:/u/lorax1/usr/obj/u/lorax1/usr/src/sys/LORAX i386


	
>Description:
	

the clamav startup script attempts to remove a stale socket (such as recovering
from a system crash).  however, it uses the wrong variable name as compared
to the default setting within the script.

>How-To-Repeat:
	
>Fix:

	


--- /usr/local/etc/rc.d/clamav-clamd.sh	Tue Feb  3 14:28:17 2004
+++ /tmp/clamav-clamd.sh	Tue Feb  3 14:27:29 2004
@@ -30,9 +30,9 @@
 
 start_precmd()
 {
-	if [ -S "$clamd_socket" ]; then
-		warn "Stale socket $clamd_socket removed."
-		rm "$clamd_socket"
+	if [ -S "$clamav_clamd_socket" ]; then
+		warn "Stale socket $clamav_clamd_socket removed."
+		rm "$clamav_clamd_socket"
 	fi
 }
 
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402092033.i19KXLIB005959>