git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@119 77e5149b-7576-45b1-b177-96237e5ba77b
Nigel Horne authored on 2003/11/20 01:35:20... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Wed Nov 19 16:34:04 GMT 2003 (njh) |
|
2 |
+--------------------------------- |
|
3 |
+ * clamav-milter: Close cmdSocket earlier |
|
4 |
+ Added setpgrp() |
|
5 |
+ |
|
1 | 6 |
Mon Nov 17 13:28:16 IST 2003 (njh) |
2 | 7 |
---------------------------------- |
3 | 8 |
* libclamav: Prevent buffer overflow in broken uuencoded files |
... | ... |
@@ -145,6 +145,9 @@ Changes |
145 | 145 |
Tidy up the call to pthread_cond_timedwait |
146 | 146 |
0.60q 11/11/03 Fixed handling of % characters in e-mail addresses |
147 | 147 |
pointed out by dotslash@snosoft.com |
148 |
+0.65 15/11/03 Upissue of clamav |
|
149 |
+0.65a 19/11/03 Close cmdSocket earlier |
|
150 |
+ Added setpgrp() |
|
148 | 151 |
|
149 | 152 |
BUG REPORTS |
150 | 153 |
|
... | ... |
@@ -151,9 +151,14 @@ |
151 | 151 |
* 0.60q 11/11/03 Fixed handling of % characters in e-mail addresses |
152 | 152 |
* pointed out by dotslash@snosoft.com |
153 | 153 |
* 0.65 15/11/03 Upissue of clamav |
154 |
+ * 0.65a 19/11/03 Close cmdSocket earlier |
|
155 |
+ * Added setpgrp() |
|
154 | 156 |
* |
155 | 157 |
* Change History: |
156 | 158 |
* $Log: clamav-milter.c,v $ |
159 |
+ * Revision 1.20 2003/11/19 16:32:22 nigelhorne |
|
160 |
+ * Close cmdSocket earlier |
|
161 |
+ * |
|
157 | 162 |
* Revision 1.19 2003/11/17 04:48:30 nigelhorne |
158 | 163 |
* Up issue to version 0.65 |
159 | 164 |
* |
... | ... |
@@ -196,9 +201,9 @@ |
196 | 196 |
* Revision 1.6 2003/09/28 16:37:23 nigelhorne |
197 | 197 |
* Added -f flag use MaxThreads if --max-children not set |
198 | 198 |
*/ |
199 |
-static char const rcsid[] = "$Id: clamav-milter.c,v 1.19 2003/11/17 04:48:30 nigelhorne Exp $"; |
|
199 |
+static char const rcsid[] = "$Id: clamav-milter.c,v 1.20 2003/11/19 16:32:22 nigelhorne Exp $"; |
|
200 | 200 |
|
201 |
-#define CM_VERSION "0.65" |
|
201 |
+#define CM_VERSION "0.65a" |
|
202 | 202 |
|
203 | 203 |
/*#define CONFDIR "/usr/local/etc"*/ |
204 | 204 |
|
... | ... |
@@ -603,6 +608,7 @@ main(int argc, char **argv) |
603 | 603 |
open("/dev/null", O_RDONLY); |
604 | 604 |
if(open("/dev/console", O_WRONLY) == 1) |
605 | 605 |
dup(1); |
606 |
+ setpgrp(); |
|
606 | 607 |
} |
607 | 608 |
|
608 | 609 |
if(smfi_setconn(port) == MI_FAILURE) { |
... | ... |
@@ -1187,6 +1193,9 @@ clamfi_eom(SMFICTX *ctx) |
1187 | 1187 |
mess[0] = '\0'; |
1188 | 1188 |
} |
1189 | 1189 |
|
1190 |
+ close(privdata->cmdSocket); |
|
1191 |
+ privdata->cmdSocket = -1; |
|
1192 |
+ |
|
1190 | 1193 |
if(strstr(mess, "FOUND") == NULL) { |
1191 | 1194 |
if(!nflag) |
1192 | 1195 |
smfi_addheader(ctx, "X-Virus-Scanned", clamav_version); |