Browse code

fallback to old method of EICAR file detection

git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@822 77e5149b-7576-45b1-b177-96237e5ba77b

Tomasz Kojm authored on 2004/09/04 02:58:20
Showing 4 changed files
... ...
@@ -1,3 +1,7 @@
1
+Fri Sep  3 19:55:57 CEST 2004 (tk)
2
+----------------------------------
3
+  * libclamav: fallback to old method of EICAR file detection
4
+
1 5
 Fri Sep  3 17:00:28 BST 2004 (njh)
2 6
 ----------------------------------
3 7
   * libclamav:	Handle spaces in headers such as 'boundary= "foo"'. I believe
... ...
@@ -1,5 +1,5 @@
1 1
 .\" Manual page created by Tomasz Kojm, 20021001.
2
-.TH "clamav.conf" "5" "August 18, 2004" "Tomasz Kojm" "Clam AntiVirus"
2
+.TH "clamav.conf" "5" "September 2, 2004" "Tomasz Kojm" "Clam AntiVirus"
3 3
 .SH "NAME"
4 4
 .LP 
5 5
 \fBclamav.conf\fR \- a configuration file for Clam AntiVirus Daemon
... ...
@@ -7,19 +7,19 @@
7 7
 .LP 
8 8
 clamav.conf configures the Clam AntiVirus daemon, clamd(8).
9 9
 .SH "FILE FORMAT"
10
-The file consists of comments and options with optional arguments. Each line that starts with a hash (\fB#\fR) symbol is ignored. Option names are case sensitive and of the form \fBOption Argument\fR. There are a few types of arguments:
10
+The file consists of comments and options with arguments. Each line that starts with a hash (\fB#\fR) symbol is a comment. Options are are case sensitive and of the form \fBOption Argument\fR. The (possibly optional) arguments are are of the following types:
11 11
 .TP 
12 12
 \fBSTRING\fR
13 13
 String without blank characters.
14 14
 .TP 
15 15
 \fBSIZE\fR
16
-Size in bytes. You can use the 'M' or 'm' modifiers for megabytes and 'K' or 'k' for kilobytes.
16
+Size in bytes. You can use a 'M' or 'm' modifiers for megabytes and a 'K' or 'k' for kilobytes.
17 17
 .TP 
18 18
 \fBNUMBER\fR
19 19
 Unsigned integer.
20 20
 .SH "DIRECTIVES"
21 21
 .LP 
22
-If some option is not used (hashed or doesn't exist in the configuration file), clamd takes a default action.
22
+When an option is not used (hashed or doesn't exist in the configuration file) freshclam takes a default action.
23 23
 .TP 
24 24
 \fBExample\fR
25 25
 If this option is set clamd will not run.
... ...
@@ -30,7 +30,7 @@ Enable logging to selected file.
30 30
 Default: disabled.
31 31
 .TP 
32 32
 \fBLogFileUnlock\fR
33
-Disable a system lock that protects against running clamd with a same configuration multiple times.
33
+Disable a system lock that protects against running clamd with a same configuration file multiple times.
34 34
 .br 
35 35
 Default: disabled.
36 36
 .TP 
... ...
@@ -1,6 +1,5 @@
1
-.\" Based on work by by Tomasz Kojm, 1.10.2002. 
2 1
 .\" Manual page created by Magnus Ekdahl and Thomas Lamy
3
-.TH "freshclam.conf" "5" "June 6, 2003" "Thomas Lamy" "Clam AntiVirus"
2
+.TH "freshclam.conf" "5" "September 2, 2004" "Thomas Lamy" "Clam AntiVirus"
4 3
 .SH "NAME"
5 4
 .LP 
6 5
 \fBfreshclam.conf\fR \- Configuration file for Clam AntiVirus Database Updater
... ...
@@ -8,7 +7,7 @@
8 8
 .LP 
9 9
 The file freshclam.conf configures the Clam AntiVirus Database Updater, freshclam(1).
10 10
 .SH "FILE FORMAT"
11
-The file consists of comments and options with arguments. Each line that starts with a hash (\fB#\fR) symbol is ignored. Everything is case sensitive. Options are of the form \fBOption Argument\fR, some options don't use arguments. There are few types of the arguments:
11
+The file consists of comments and options with arguments. Each line that starts with a hash (\fB#\fR) symbol is a comment. Options are are case sensitive and of the form \fBOption Argument\fR. The (possibly optional) arguments are are of the following types:
12 12
 .TP 
13 13
 \fBSTRING\fR
14 14
 String without blank characters.
... ...
@@ -18,21 +17,23 @@ Size in bytes. You can use a 'M' or 'm' modifiers for megabytes and a 'K' or 'k'
18 18
 .TP 
19 19
 \fBNUMBER\fR
20 20
 Unsigned integer.
21
-.SH "OPTIONS"
21
+.SH "DIRECTIVES"
22 22
 .LP 
23
-When some option is not used (hashed or doesn't exist in the configuration file), freshclam takes a default action.
23
+When an option is not used (hashed or doesn't exist in the configuration file) freshclam takes a default action.
24 24
 .TP 
25 25
 \fBExample\fR
26
-When this option is set, freshclam will stop and ask you to modify the configuration file.
27
-.TP
26
+If this option is set clamd will not run.
27
+.TP 
28 28
 \fBDatabaseOwner STRING\fR
29 29
 When started by root, drop privileges to a specified user. Default is \"clamav\".
30
-.TP
30
+.TP 
31 31
 \fBDatabaseDirectory STRING\fR
32
-One can change the default database directory here.  Note that clamd and clamscan expect the hardcoded path \/var\/lib\/clamav.
33
-.TP
32
+Path to a directory containing database files.
33
+.br 
34
+Default: hardcoded directory
35
+.TP 
34 36
 \fBChecks NUM\fR
35
-Number of new database checks per day. Default is to check 6 times \(every 4 hours\).
37
+Number of database checks per day. 12 is the recommended number.
36 38
 .TP 
37 39
 \fBUpdateLogFile STRING\fR
38 40
 Enable logging to a specified file. Highly recommended.
... ...
@@ -49,32 +50,32 @@ Enable verbose logging.
49 49
 .TP 
50 50
 \fBDatabaseMirror STRING\fR
51 51
 Server name where database updates are downloaded from. The default is database.clamav.net, which points to all official mirrors.
52
-.br.
52
+.br .
53 53
 If this option is given multiple times, freshclam(1) tries them in the order given if one download fails.
54 54
 .br 
55 55
 There is no default, which results in an error when running freshclam(1).
56
-.TP
56
+.TP 
57 57
 \fBMaxAttempts NUM\fR
58 58
 Freshclam(1) tries every mirror this number of times before switching to the next mirror.
59
-.br.
59
+.br .
60 60
 Default is to try once per mirror.
61
-.TP
61
+.TP 
62 62
 \fBHTTPProxyServer STR\fR, \fBHTTPProxyPort NUM\fR
63 63
 Use given proxy server and TCP port for database downloads.
64
-.TP
64
+.TP 
65 65
 \fBHTTPProxyUsername STR\fR,\fBHTTPProxyPassword STR\fR
66 66
 Proxy usage is authenticated through given username and password.
67
-.br.
67
+.br .
68 68
 Default: no proxy authentication
69
-.TP
69
+.TP 
70 70
 \fBNotifyClamd \[STRING\]\fR
71 71
 Notify a running clamd(8) to reload it\'s database after a download has occured. Optionally a clamav.conf(5) file location may be given to tell freshclam(1) how to communicate with clamd(8).
72
-.br.
72
+.br .
73 73
 The default is to not notify clamd. See clamav.conf(5)\'s option SelfCheck for how clamd(8) handles database updates in this case.
74
-.TP
74
+.TP 
75 75
 \fBOnUpdateExecute STRING\fR
76 76
 Execute this command after the database has been successfully updated.
77
-.TP
77
+.TP 
78 78
 \fBOnErrorExecute\fR
79 79
 Execute this command after a database update has failed.
80 80
 .SH "NOTE"
... ...
@@ -82,7 +83,7 @@ While not reasonable, any configuration option from clamav.conf(5) may be given.
82 82
 .SH "FILES"
83 83
 .LP 
84 84
 /usr/local/etc/freshclam.conf
85
-.br
85
+.br 
86 86
 /etc/clamav/freshclam.conf
87 87
 .SH "AUTHOR"
88 88
 .LP 
... ...
@@ -415,10 +415,6 @@ static int cli_loaddb(FILE *fd, struct cl_node **root, int *virnum)
415 415
     }
416 416
 
417 417
     while(fgets(buffer, FILEBUFF, fd)) {
418
-
419
-	if(strstr(buffer, "Eicar")) /* FIXME: Remove me some day! */
420
-	    continue;
421
-
422 418
 	line++;
423 419
 	cli_chomp(buffer);
424 420