Browse code

Fix quarantine files being saved twice

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

Nigel Horne authored on 2004/10/04 21:39:24
Showing 3 changed files
... ...
@@ -1,3 +1,9 @@
1
+Mon Oct  4 13:38:23 BST 2004 (njh)
2
+----------------------------------
3
+  * clamav-milter:	Fix mails containing viruses being kept twice in
4
+				quarantine; once as 'msg.xxxxxx' and once as
5
+				'msg.xxxxxx.virusname'
6
+
1 7
 Mon Oct  4 13:20:17 BST 2004 (njh)
2 8
 ----------------------------------
3 9
   * libclamav:		More informative message when scanning PGP encoded
... ...
@@ -513,6 +513,8 @@ Changes
513 513
 			set to the orginator's address
514 514
 0.80f	2/10/04	Fix crash if %h is used in a template and --headers is not set
515 515
 0.80g	4/10/04	Enhanced the SMTP reply
516
+0.80h	4/10/04	Fix mails containing viruses being kept twice in quarantine;
517
+			once as 'msg.xxxxxx' and once as 'msg.xxxxxx.virusname'
516 518
 
517 519
 INTERNATIONALISATION
518 520
 
... ...
@@ -26,6 +26,9 @@
26 26
  *
27 27
  * Change History:
28 28
  * $Log: clamav-milter.c,v $
29
+ * Revision 1.139  2004/10/04 12:37:11  nigelhorne
30
+ * Fix quarantine files being saved twice
31
+ *
29 32
  * Revision 1.138  2004/10/04 10:53:58  nigelhorne
30 33
  * Better SMTP message when virus is found
31 34
  *
... ...
@@ -425,9 +428,9 @@
425 425
  * Revision 1.6  2003/09/28 16:37:23  nigelhorne
426 426
  * Added -f flag use MaxThreads if --max-children not set
427 427
  */
428
-static	char	const	rcsid[] = "$Id: clamav-milter.c,v 1.138 2004/10/04 10:53:58 nigelhorne Exp $";
428
+static	char	const	rcsid[] = "$Id: clamav-milter.c,v 1.139 2004/10/04 12:37:11 nigelhorne Exp $";
429 429
 
430
-#define	CM_VERSION	"0.80g"
430
+#define	CM_VERSION	"0.80h"
431 431
 
432 432
 /*#define	CONFDIR	"/usr/local/etc"*/
433 433
 
... ...
@@ -3696,6 +3699,7 @@ qfile(struct privdata *privdata, const char *virusname)
3696 3696
 		free(newname);
3697 3697
 		return -1;
3698 3698
 	}
3699
+	unlink(privdata->filename);
3699 3700
 	free(privdata->filename);
3700 3701
 	privdata->filename = newname;
3701 3702