git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@597 77e5149b-7576-45b1-b177-96237e5ba77b
Nigel Horne authored on 2004/06/09 06:49:52... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Tue Jun 8 22:46:29 BST 2004 (njh) |
|
2 |
+---------------------------------- |
|
3 |
+ * clamav-milter: Ensure --from always takes an argument |
|
4 |
+ |
|
1 | 5 |
Sun Jun 6 22:35:19 BST 2004 (njh) |
2 | 6 |
---------------------------------- |
3 | 7 |
* libclamav/mbox.c: Find uuencoded viruses in multipart/mixed that have no |
... | ... |
@@ -26,6 +26,9 @@ |
26 | 26 |
* |
27 | 27 |
* Change History: |
28 | 28 |
* $Log: clamav-milter.c,v $ |
29 |
+ * Revision 1.93 2004/06/08 21:44:59 nigelhorne |
|
30 |
+ * Ensure --from takes an argument |
|
31 |
+ * |
|
29 | 32 |
* Revision 1.92 2004/06/03 13:14:08 nigelhorne |
30 | 33 |
* Up-issued |
31 | 34 |
* |
... | ... |
@@ -287,9 +290,9 @@ |
287 | 287 |
* Revision 1.6 2003/09/28 16:37:23 nigelhorne |
288 | 288 |
* Added -f flag use MaxThreads if --max-children not set |
289 | 289 |
*/ |
290 |
-static char const rcsid[] = "$Id: clamav-milter.c,v 1.92 2004/06/03 13:14:08 nigelhorne Exp $"; |
|
290 |
+static char const rcsid[] = "$Id: clamav-milter.c,v 1.93 2004/06/08 21:44:59 nigelhorne Exp $"; |
|
291 | 291 |
|
292 |
-#define CM_VERSION "0.72" |
|
292 |
+#define CM_VERSION "0.72a" |
|
293 | 293 |
|
294 | 294 |
/*#define CONFDIR "/usr/local/etc"*/ |
295 | 295 |
|
... | ... |
@@ -615,14 +618,14 @@ main(int argc, char **argv) |
615 | 615 |
for(;;) { |
616 | 616 |
int opt_index = 0; |
617 | 617 |
#ifdef CL_DEBUG |
618 |
- const char *args = "abc:CDfF:lm:nNop:PqQ:dhHs:St:U:Vx:"; |
|
618 |
+ const char *args = "a:bc:CDfF:lm:nNop:PqQ:dhHs:St:U:Vx:"; |
|
619 | 619 |
#else |
620 |
- const char *args = "abc:CDfF:lm:nNop:PqQ:dhHs:St:U:V"; |
|
620 |
+ const char *args = "a:bc:CDfF:lm:nNop:PqQ:dhHs:St:U:V"; |
|
621 | 621 |
#endif |
622 | 622 |
|
623 | 623 |
static struct option long_options[] = { |
624 | 624 |
{ |
625 |
- "from", 0, NULL, 'a' |
|
625 |
+ "from", 1, NULL, 'a' |
|
626 | 626 |
}, |
627 | 627 |
{ |
628 | 628 |
"bounce", 0, NULL, 'b' |
... | ... |
@@ -2191,9 +2194,9 @@ clamfi_abort(SMFICTX *ctx) |
2191 | 2191 |
#ifdef CL_DEBUG |
2192 | 2192 |
if(use_syslog) |
2193 | 2193 |
syslog(LOG_DEBUG, "clamfi_abort"); |
2194 |
- cli_dbgmsg("clamfi_abort\n"); |
|
2195 | 2194 |
#endif |
2196 | 2195 |
|
2196 |
+ cli_dbgmsg("clamfi_abort\n"); |
|
2197 | 2197 |
/* |
2198 | 2198 |
* Unlock incase we're called during a cond_timedwait in envfrom |
2199 | 2199 |
* |