Browse code

do not remove temporary directories in debug mode

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

Tomasz Kojm authored on 2004/04/11 04:16:41
Showing 2 changed files
... ...
@@ -1,7 +1,11 @@
1
+Sat Apr 10 21:28:40 CEST 2004 (tk)
2
+----------------------------------
3
+  * libclamav: do not remove temporary directories in debug mode
4
+
1 5
 Sat Apr 10 08:02:20 BST 2004 (njh)
2 6
 ----------------------------------
3 7
   * docs/man/clamav-milter.8:	Clarified --force-scan (thanks to
4

                
8

                
5 9
 
6 10
 Fri Apr  9 09:50:52 BST 2004 (njh)
7 11
 ----------------------------------
... ...
@@ -28,7 +32,7 @@ Mon Apr  5 23:49:23 CEST 2004 (tk)
28 28
 ----------------------------------
29 29
   * contrib: new init script for SuSE (by Martin Fuxa <yeti*email.cz>)
30 30
   * configure: fix linking problem under NetBSD (reported by Nigel);
31
-	       enable support for threads (pth is required and
31
+	       enable support for threads under NetBSD (pth is required and
32 32
 	       LDFLAGS="-L/usr/pkg/lib" and CPPFLAGS="-I/usr/pkg/include"
33 33
 	       must be exported). Thanks to Jorgen Norgaard <jnp*anneli.dk>.
34 34
   * clamscan: fix --bell behaviour ("one beep" problem reported by Tomasz
... ...
@@ -318,6 +318,9 @@ int cli_rmdirs(const char *dirname)
318 318
 	char *fname;
319 319
 
320 320
 
321
+    if(cli_debug_flag)
322
+	return 0;
323
+
321 324
     chmod(dirname, 0700);
322 325
     if((dd = opendir(dirname)) != NULL) {
323 326
 	while(stat(dirname, &maind) != -1) {