[Pkg-clamav-commits] [SCM] Debian repository for ClamAV branch, debian/unstable, updated. debian/0.95+dfsg-1-6156-g094ec9b
aCaB
acab at clamav.net
Sun Apr 4 01:15:30 UTC 2010
The following commit has been merged in the debian/unstable branch:
commit 986dcea666ed69bfb3a42c304b4f5cf88a22ef52
Author: aCaB <acab at clamav.net>
Date: Tue Jan 19 11:27:33 2010 +0100
bb#1788
diff --git a/ChangeLog b/ChangeLog
index 5bf9cd8..48431a8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Jan 19 11:26:11 CET 2010 (acab)
+-----------------------------------
+ * clamscan/manager.c: use unsigned fsize (bb#1788)
+
Fri Jan 15 03:02:25 CET 2010 (acab)
-----------------------------------
* libclamav: cache negative matches
diff --git a/clamscan/manager.c b/clamscan/manager.c
index c02e568..ebc6e17 100644
--- a/clamscan/manager.c
+++ b/clamscan/manager.c
@@ -66,7 +66,8 @@ dev_t procdev;
static int scanfile(const char *filename, struct cl_engine *engine, const struct optstruct *opts, unsigned int options)
{
- int ret = 0, fd, included, printclean = 1, fsize;
+ int ret = 0, fd, included, printclean = 1;
+ unsigned int fsize;
const struct optstruct *opt;
const char *virname;
#ifdef C_LINUX
@@ -116,6 +117,7 @@ static int scanfile(const char *filename, struct cl_engine *engine, const struct
return 0;
}
info.rblocks += fsize / CL_COUNT_PRECISION;
+ printf("THIS: %u(%u) - SO FAR: %u\n", fsize/CL_COUNT_PRECISION, fsize, info.rblocks);
#ifndef _WIN32
if(geteuid())
if(checkaccess(filename, NULL, R_OK) != 1) {
--
Debian repository for ClamAV
More information about the Pkg-clamav-commits
mailing list