git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@138 77e5149b-7576-45b1-b177-96237e5ba77b
Tomasz Kojm authored on 2003/12/04 06:04:49... | ... |
@@ -1,3 +1,10 @@ |
1 |
+Wed Dec 3 22:03:19 CET 2003 (tk) |
|
2 |
+--------------------------------- |
|
3 |
+ * libclamav: cli_scandir(): fixed a recursive loop (a wrong file argument |
|
4 |
+ was passed to the recursive call but fortunately this function |
|
5 |
+ is only used with with one level directories). Bug found by |
|
6 |
+ Tomasz Klim <tomek*euroneto.pl>. |
|
7 |
+ |
|
1 | 8 |
Tue Dec 2 23:41:04 CET 2003 (tk) |
2 | 9 |
--------------------------------- |
3 | 10 |
* New fixes from Thomas Lamy <Thomas.Lamy*in-online.net>: |
... | ... |
@@ -553,7 +553,7 @@ int cli_scandir(char *dirname, char **virname, long int *scanned, const struct c |
553 | 553 |
/* stat the file */ |
554 | 554 |
if(lstat(fname, &statbuf) != -1) { |
555 | 555 |
if(S_ISDIR(statbuf.st_mode) && !S_ISLNK(statbuf.st_mode)) |
556 |
- cli_scandir(dirname, virname, scanned, root, limits, options, reclev); |
|
556 |
+ cli_scandir(fname, virname, scanned, root, limits, options, reclev); |
|
557 | 557 |
else |
558 | 558 |
if(S_ISREG(statbuf.st_mode)) |
559 | 559 |
if(cl_scanfile(fname, virname, scanned, root, limits, options) == CL_VIRUS) { |