ports/62601: clamav startup has wrong path to socket

Vivek Khera vivek at khera.org
Mon Feb 9 20:40:11 UTC 2004


>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 at 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:



More information about the freebsd-ports-bugs mailing list