Browse code

cleanups

git-svn: trunk@1972

Tomasz Kojm authored on 2006/05/13 03:07:19
Showing 8 changed files
... ...
@@ -1,3 +1,8 @@
1
+Fri May 12 20:04:05 CEST 2006 (tk)
2
+----------------------------------
3
+  * clamscan: s/no-algo/no-algorithmic
4
+  * clamd: s/ScanAlgo/AlgorithmicDetection
5
+
1 6
 Fri May 12 19:35:41 CEST 2006 (tk)
2 7
 ----------------------------------
3 8
   * libclamav/scanners.c: fix zero allocation reported by Sergey Svishchev
... ...
@@ -326,7 +326,7 @@ int acceptloop_th(int *socketds, int nsockets, struct cl_node *root, const struc
326 326
 	logg("Archive support disabled.\n");
327 327
     }
328 328
 
329
-    if(cfgopt(copt, "ScanAlgo")->enabled) {
329
+    if(cfgopt(copt, "AlgorithmicDetection")->enabled) {
330 330
 	logg("Algorithmic detection enabled.\n");
331 331
 	options |= CL_SCAN_ALGO;
332 332
     } else {
... ...
@@ -233,7 +233,7 @@ void help(void)
233 233
     mprintf("\n");
234 234
     mprintf("    --no-mail                            Disable mail file support\n");
235 235
     mprintf("    --no-phishing                        Disable phishing detection\n");
236
-    mprintf("    --no-algo                            Disable algorithmic detection\n");
236
+    mprintf("    --no-algorithmic                     Disable algorithmic detection\n");
237 237
     mprintf("    --no-pe                              Disable PE analysis\n");
238 238
     mprintf("    --no-ole2                            Disable OLE2 support\n");
239 239
     mprintf("    --no-html                            Disable HTML support\n");
... ...
@@ -203,7 +203,7 @@ int scanmanager(const struct optstruct *opt)
203 203
 #endif
204 204
     }
205 205
 
206
-    if(optl(opt, "no-algo"))
206
+    if(optl(opt, "no-algorithmic"))
207 207
 	options &= ~CL_SCAN_ALGO;
208 208
     else
209 209
 	options |= CL_SCAN_ALGO;
... ...
@@ -109,7 +109,7 @@ int main(int argc, char **argv)
109 109
 	    {"no-mail", 0, 0, 0},
110 110
 	    {"mail-follow-urls", 0, 0, 0},
111 111
 	    {"no-phishing", 0, 0, 0},
112
-	    {"no-algo", 0, 0, 0},
112
+	    {"no-algorithmic", 0, 0, 0},
113 113
 	    {"unzip", 2, 0, 0},
114 114
 	    {"unrar", 2, 0, 0},
115 115
 	    {"unace", 2, 0, 0}, /* not used */
... ...
@@ -189,7 +189,7 @@ Limit data port range.
189 189
 .br 
190 190
 Default: 2048
191 191
 .TP 
192
-\fBScanAlgo\fR
192
+\fBAlgorithmicDetection\fR
193 193
 In some cases (eg. complex malware, exploits in graphic files, and others), ClamAV uses special algorithms to provide accurate detection. This option controls the algorithmic detection.
194 194
 .br 
195 195
 Default: yes
... ...
@@ -166,7 +166,7 @@ LocalSocket /tmp/clamd
166 166
 # ClamAV uses special algorithms to provide accurate detection. This option
167 167
 # controls the algorithmic detection.
168 168
 # Default: yes
169
-#ScanAlgo yes
169
+#AlgorithmicDetection yes
170 170
 
171 171
 ##
172 172
 ## Executable files
... ...
@@ -48,7 +48,7 @@ struct cfgoption cfg_options[] = {
48 48
     {"ScanMail", OPT_BOOL, 1, NULL, 0, OPT_CLAMD},
49 49
     {"MailFollowURLs", OPT_BOOL, 0, NULL, 0, OPT_CLAMD},
50 50
     {"DetectPhishing", OPT_BOOL, 1, NULL, 0, OPT_CLAMD},
51
-    {"ScanAlgo", OPT_BOOL, 1, NULL, 0, OPT_CLAMD},
51
+    {"AlgorithmicDetection", OPT_BOOL, 1, NULL, 0, OPT_CLAMD},
52 52
     {"ScanHTML", OPT_BOOL, 1, NULL, 0, OPT_CLAMD},
53 53
     {"ScanOLE2", OPT_BOOL, 1, NULL, 0, OPT_CLAMD},
54 54
     {"ScanArchive", OPT_BOOL, 1, NULL, 0, OPT_CLAMD},