summaryrefslogtreecommitdiff
path: root/security/py-pyclamd/files/patch-pyclamd.py
blob: 029b4ee6c0492ee502ec1203cf5644408eb60874 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- pyclamd.py.orig	2007-04-11 18:10:26.000000000 +0200
+++ pyclamd.py	2007-08-28 11:28:48.000000000 +0200
@@ -14,7 +14,7 @@
     # Network
     pyclamd.init_network_socket('localhost', 3310)
     # Unix local socket 
-    #pyclamd.init_unix_socket('/var/run/clamd')
+    #pyclamd.init_unix_socket('/var/run/clamav/clamd')
 
     # Get Clamscan version
     print pyclamd.version()
@@ -29,7 +29,7 @@
 Test strings :
 ^^^^^^^^^^^^
 >>> try:
-...     init_unix_socket('/var/run/clamd')
+...     init_unix_socket('/var/run/clamav/clamd')
 ... except ScanError:
 ...     init_network_socket('localhost', 3310)
 ... 
@@ -68,7 +68,7 @@
 
 # Default values for globals
 use_socket = None
-clamd_SOCKET = "/var/run/clamd"
+clamd_SOCKET = "/var/run/clamav/clamd"
 clamd_HOST='127.0.0.1'
 clamd_PORT=3310
 
@@ -85,7 +85,7 @@
             
 ############################################################################
 
-def init_unix_socket(filename="/var/run/clamd"):
+def init_unix_socket(filename="/var/run/clamav/clamd"):
     """
     Init pyclamd to use clamd unix local socket