From e41d1146a6336680791c4f79f94dd7ed546a83be Mon Sep 17 00:00:00 2001 From: Mateusz Korniak Date: Mon, 1 Dec 2003 14:07:43 +0000 Subject: [PATCH] - Remove stale socket after unclean shutdown option enabled by default. Changed files: clamav-pld_config.patch -> 1.2 --- clamav-pld_config.patch | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/clamav-pld_config.patch b/clamav-pld_config.patch index 4fe52e6..e902464 100644 --- a/clamav-pld_config.patch +++ b/clamav-pld_config.patch @@ -1,6 +1,6 @@ -diff -urN clamav-0.60.orig/etc/clamav.conf clamav-0.60/etc/clamav.conf ---- clamav-0.60.orig/etc/clamav.conf Thu Aug 28 14:14:08 2003 -+++ clamav-0.60/etc/clamav.conf Thu Aug 28 14:15:09 2003 +diff -urN clamav-0.65.orig/etc/clamav.conf clamav-0.65/etc/clamav.conf +--- clamav-0.65.orig/etc/clamav.conf Mon Dec 1 14:59:35 2003 ++++ clamav-0.65/etc/clamav.conf Mon Dec 1 14:57:07 2003 @@ -5,12 +5,12 @@ @@ -41,7 +41,7 @@ diff -urN clamav-0.60.orig/etc/clamav.conf clamav-0.60/etc/clamav.conf # The daemon works in local or network mode. Currently the local mode is # recommended for security reasons. -@@ -50,7 +51,9 @@ +@@ -50,10 +51,12 @@ # Path to the local socket. The daemon doesn't change the mode of the # created file (portability reasons). You may want to create it in a directory # which is only accessible for a user running daemon. @@ -50,9 +50,13 @@ diff -urN clamav-0.60.orig/etc/clamav.conf clamav-0.60/etc/clamav.conf + +LocalSocket /var/lib/clamav/clamd.socket + # Remove stale socket after unclean shutdown. +-#FixStaleSocket ++FixStaleSocket + # TCP port address. #TCPSocket 3310 -@@ -93,11 +96,11 @@ +@@ -111,11 +114,11 @@ # Run as selected user (clamd must be started by root). # By default it doesn't drop privileges. @@ -66,7 +70,7 @@ diff -urN clamav-0.60.orig/etc/clamav.conf clamav-0.60/etc/clamav.conf # Don't fork into background. Useful in debugging. #Foreground -@@ -107,13 +110,12 @@ +@@ -128,13 +131,12 @@ ## # Uncomment this option if you are planning to scan mail files. -- 2.44.0