Browse code

update

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

Tomasz Kojm authored on 2004/09/27 11:04:08
Showing 4 changed files
... ...
@@ -1,3 +1,7 @@
1
+Mon Sep 27 04:00:14 CEST 2004 (tk)
2
+----------------------------------
3
+  * libclamav: ignore ndb signatures in cl_scanbuff()
4
+
1 5
 Sun Sep 26 03:11:48 CEST 2004 (tk)
2 6
 ----------------------------------
3 7
   * docs/MacOSX: update (Dale Enterprise L.L.C)
... ...
@@ -156,7 +156,7 @@ This option supports tar.gz and .tgz files. You need GNU tar, on non\-Linux syst
156 156
 .TP 
157 157
 (5) Scan mail spool directory:
158 158
 
159
-\fBclamscan \-r \-\-mbox /var/spool/mail\fR
159
+\fBclamscan \-r /var/spool/mail\fR
160 160
 .SH "RETURN CODES"
161 161
 .LP 
162 162
 Note: some return codes may only appear in a one file mode (clamscan is started with file argument). Those are marked with \fB(ofm)\fR.
... ...
@@ -296,7 +296,7 @@ int cli_ac_scanbuff(const char *buffer, unsigned int length, const char **virnam
296 296
 			    t = type;
297 297
 			else
298 298
 			    t = ftype;
299
-			if(!cli_validatesig(pt->target, t, pt->offset, offset + position, fd, pt->virname)) {
299
+			if(fd == -1 || !cli_validatesig(pt->target, t, pt->offset, offset + position, fd, pt->virname)) {
300 300
 			    pt = pt->next;
301 301
 			    continue;
302 302
 			}
... ...
@@ -169,7 +169,7 @@ int cli_bm_scanbuff(const char *buffer, unsigned int length, const char **virnam
169 169
 
170 170
 		    if(p->target || p->offset) {
171 171
 			    int off = offset + i - BM_MIN_LENGTH + BM_BLOCK_SIZE;
172
-			if(!cli_validatesig(p->target, ftype, p->offset, off, fd, p->virname)) {
172
+			if(fd == -1 || !cli_validatesig(p->target, ftype, p->offset, off, fd, p->virname)) {
173 173
 			    p = p->next;
174 174
 			    continue;
175 175
 			}