Browse code

for allscan mode, update usage messages and man pages

Steve Morgan authored on 2012/11/28 07:48:50
Showing 5 changed files
... ...
@@ -194,6 +194,7 @@ void help(void)
194 194
     mprintf("    --move=DIRECTORY                   Move infected files into DIRECTORY\n");
195 195
     mprintf("    --copy=DIRECTORY                   Copy infected files into DIRECTORY\n");
196 196
     mprintf("    --config-file=FILE                 Read configuration from FILE.\n");
197
+    mprintf("    --allmatch            -z           Continue scanning within file after finding a match.\n");
197 198
     mprintf("    --multiscan           -m           Force MULTISCAN mode\n");
198 199
     mprintf("    --infected            -i           Only print infected files\n");
199 200
     mprintf("    --no-summary                       Disable summary at end of scanning\n");
... ...
@@ -215,6 +215,7 @@ void help(void)
215 215
     mprintf("    --official-db-only[=yes/no(*)]       Only load official signatures\n");
216 216
     mprintf("    --log=FILE            -l FILE        Save scan report to FILE\n");
217 217
     mprintf("    --recursive[=yes/no(*)]  -r          Scan subdirectories recursively\n");
218
+    mprintf("    --allmatch[=yes/no(*)]   -z          Continue scanning within file after finding a match\n");
218 219
     mprintf("    --cross-fs[=yes(*)/no]               Scan files and directories on other filesystems\n");
219 220
     mprintf("    --follow-dir-symlinks[=0/1(*)/2]     Follow directory symlinks (0 = never, 1 = direct, 2 = always)\n");
220 221
     mprintf("    --follow-file-symlinks[=0/1(*)/2]    Follow file symlinks (0 = never, 1 = direct, 2 = always)\n");
... ...
@@ -36,6 +36,9 @@ Scan file or directory (recursively) with archive support enabled and don't stop
36 36
 .TP 
37 37
 \fBMULTISCAN file/directory\fR
38 38
 Scan file in a standard way or scan directory (recursively) using multiple threads (to make the scanning faster on SMP machines).
39
+.TP 
40
+\fBALLMATCHSCAN file/directory\fR
41
+ALLMATCHSCAN works just like SCAN except that it sets a mode where scanning continues after finding a match within a file.
39 42
 .TP
40 43
 \fBINSTREAM\fR
41 44
 It is mandatory to prefix this command with \fBn\fR or \fBz\fR.
... ...
@@ -38,6 +38,9 @@ Scan files listed line by line in FILE.
38 38
 .TP 
39 39
 \fB\-m, \-\-multiscan\fR
40 40
 In the multiscan mode clamd will attempt to scan the directory contents in parallel using available threads. This option is especially useful on multiprocessor and multi-core systems. If you pass more than one file or directory in the command line, they are put in a queue and sent to clamd individually. This means, that single files are always scanned by a single thread. Similarly, clamdscan will wait for clamd to finish a directory scan (performed in multiscan mode) before sending request to scan another directory. This option can be combined with \-\-fdpass (see below).
41
+.TP
42
+\fB\-z, \-\-allmatch\fR
43
+After a match, continue scanning within the file for additional matches.
41 44
 .TP 
42 45
 \fB\-\-remove\fR
43 46
 Remove infected files. \fBBe careful.\fR
... ...
@@ -51,6 +51,9 @@ Scan files listed line by line in FILE.
51 51
 \fB\-r, \-\-recursive\fR
52 52
 Scan directories recursively. All the subdirectories in the given directory will be scanned.
53 53
 .TP 
54
+\fB\-z, \-\-allmatch\fR
55
+After a match, continue scanning within the file for additional matches.
56
+.TP 
54 57
 \fB\-\-cross\-fs=[yes(*)/no]\fR
55 58
 Scan files and directories on other filesystems.
56 59
 .TP