------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=926

Nigel Metheringham <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|Exim 4.72                   |Exim 4.73

Andrew C Aitchison <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
                   |                            |k




--- Comment #12 from Andrew C Aitchison <[email protected]>  
2010-07-01 14:33:19 ---
In the commandline case, Patch 361 removes the line from src/malware.c which
gives file_name a value.

This means that command-line scanners are not being passed a value for the
directory to scan in %s. The patch below restores the value, and makes the
scanner do the right thing again, but given the other changes I suspect it
needs tidying, eg to replace 1024 with sizeof(something) ?

*** src/malware.c
--- src/malware.c
*************** static int malware_internal(uschar **lis
*** 1092,1097 ****
--- 1092,1098 ----

        /* prepare scanner call; despite the naming, file_name holds a
directory
        name which is documented as the value given to %s. */
+       (void)string_format(file_name,1024,"%s/scan/%s", spool_directory,
message_id);
        if (Ustrlen(eml_filename) > sizeof(file_name) - 1)
          {
          log_write(0, LOG_MAIN|LOG_PANIC,

- sorry for not making the patch an attachment, but firefox keeps crashing in
the file browser.


-- 
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-dev Exim details 
at http://www.exim.org/ ##

Reply via email to