Browse code

debug message for html tempfiles

git-svn: trunk@3723

Török Edvin authored on 2008/03/19 07:44:39
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Tue Mar 18 23:55:49 EET 2008 (edwin)
2
+------------------------------------
3
+  * libclamav/scanners.c: debug message for html tempfiles
4
+
1 5
 Tue Mar 18 15:47:47 CET 2008 (tk)
2 6
 ---------------------------------
3 7
   * docs/clamdoc.*: various documentation updates
... ...
@@ -918,6 +918,8 @@ static int cli_scanhtml(int desc, cli_ctx *ctx)
918 918
         return CL_ETMPDIR;
919 919
     }
920 920
 
921
+    cli_dbgmsg("cli_scanhtml: using tempdir %s\n", tempname);
922
+
921 923
     html_normalise_fd(desc, tempname, NULL, ctx->dconf);
922 924
     snprintf(fullname, 1024, "%s/nocomment.html", tempname);
923 925
     fd = open(fullname, O_RDONLY|O_BINARY);
... ...
@@ -1039,6 +1041,8 @@ static int cli_scanhtml_utf16(int desc, cli_ctx *ctx)
1039 1039
 	return CL_EIO;
1040 1040
     }
1041 1041
 
1042
+    cli_dbgmsg("cli_scanhtml_utf16: using tempfile %s\n", tempname);
1043
+
1042 1044
     while((bytes = read(desc, buff, sizeof(buff))) > 0) {
1043 1045
 	decoded = cli_utf16toascii(buff, bytes);
1044 1046
 	if(decoded) {