[exim-dev] [Bug 926] clamd 0.95 deprecates "STREAM" command

Top Page
Delete this message
Reply to this message
Author: Andrew C Aitchison
Date:  
To: exim-dev
Old-Topics: [exim-dev] [Bug 926] New: clamd 0.95 deprecates "STREAM" command
Subject: [exim-dev] [Bug 926] clamd 0.95 deprecates "STREAM" command
------- 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 <nigel@???> changed:

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


Andrew C Aitchison <a.c.aitchison@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |a.c.aitchison@???
                   |                            |k





--- Comment #12 from Andrew C Aitchison <a.c.aitchison@???> 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