diff options
author | Phil Pennock <pdp@exim.org> | 2010-06-06 22:46:33 +0000 |
---|---|---|
committer | Phil Pennock <pdp@exim.org> | 2010-06-06 22:46:33 +0000 |
commit | dbc4b90d7238e249a9406cc3770ca4445b87864f (patch) | |
tree | 755390d42a1becd2f88e7b8467e6cd05d03f8134 /src | |
parent | 10385c155b0e1266c02535b76ab73b32fa83d73f (diff) |
Build without WITH_CONTENT_SCAN.
Broken by -bmalware option added while reworking ClamAV to new API.
Path from Andreas Metzler (adjusted slightly).
Diffstat (limited to 'src')
-rw-r--r-- | src/src/exim.c | 6 | ||||
-rw-r--r-- | src/src/functions.h | 3 | ||||
-rw-r--r-- | src/src/malware.c | 5 |
3 files changed, 10 insertions, 4 deletions
diff --git a/src/src/exim.c b/src/src/exim.c index a68a06227..890bcebe9 100644 --- a/src/src/exim.c +++ b/src/src/exim.c @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/exim.c,v 1.69 2010/06/06 02:46:13 pdp Exp $ */ +/* $Cambridge: exim/src/src/exim.c,v 1.70 2010/06/06 22:46:34 pdp Exp $ */ /************************************************* * Exim - an Internet mail transport agent * @@ -3623,6 +3623,7 @@ else setgid(exim_gid); /* Handle a request to scan a file for malware */ if (malware_test_file) { +#ifdef WITH_CONTENT_SCAN int result; set_process_info("scanning file for malware"); result = malware_in_file(malware_test_file); @@ -3640,6 +3641,9 @@ if (malware_test_file) printf("Malware found: %s\n", malware_name); else printf("Malware scan detected malware of unknown name.\n"); +#else + printf("Malware scanning not enabled at compile time.\n"); +#endif exit(EXIT_FAILURE); } diff --git a/src/src/functions.h b/src/src/functions.h index 90c2b1269..24088727a 100644 --- a/src/src/functions.h +++ b/src/src/functions.h @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/functions.h,v 1.51 2010/06/06 00:27:52 pdp Exp $ */ +/* $Cambridge: exim/src/src/functions.h,v 1.52 2010/06/06 22:46:34 pdp Exp $ */ /************************************************* * Exim - an Internet mail transport agent * @@ -156,6 +156,7 @@ extern void log_close_all(void); #ifdef WITH_CONTENT_SCAN extern int malware(uschar **); +extern int malware_in_file(uschar *); #endif extern int match_address_list(uschar *, BOOL, BOOL, uschar **, unsigned int *, int, int, uschar **); diff --git a/src/src/malware.c b/src/src/malware.c index 5ee52eb84..61b0c2994 100644 --- a/src/src/malware.c +++ b/src/src/malware.c @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/malware.c,v 1.19 2010/06/05 11:13:30 pdp Exp $ */ +/* $Cambridge: exim/src/src/malware.c,v 1.20 2010/06/06 22:46:34 pdp Exp $ */ /************************************************* * Exim - an Internet mail transport agent * @@ -100,7 +100,8 @@ Arguments: Returns: Exim message processing code (OK, FAIL, DEFER, ...) where true means malware was found (condition applies) */ -int malware_in_file(uschar *eml_filename) { +int +malware_in_file(uschar *eml_filename) { uschar *scan_options[2]; uschar message_id_buf[64]; int ret; |