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

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Phil Pennock
Ημερομηνία:  
Προς: exim-dev
Παλιά Θέματα: [exim-dev] [Bug 926] New: clamd 0.95 deprecates "STREAM" command
Αντικείμενο: [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

Phil Pennock <pdp@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |ASSIGNED





--- Comment #14 from Phil Pennock <pdp@???> 2010-07-01 18:25:42 ---
It was 5am last night when I saw this, so my reply didn't come from the correct
sender to make it to the exim-dev list, but I did find what I think the problem
is and provide a patch.

While your patch does restore the previous behaviour, it will break -bmalware.
Instead, does this work:


diff --git a/src/src/malware.c b/src/src/malware.c
index f82bef6..6e8b3f3 100644
--- a/src/src/malware.c
+++ b/src/src/malware.c
@@ -1098,7 +1098,8 @@ static int malware_internal(uschar **listptr, uschar
*eml_filename, BOOL faking)
             "malware filename does not fit in buffer [malware_internal()
cmdline]");
         return DEFER;
         }
-      p = Ustrrchr(eml_filename, '/');
+      Ustrcpy(file_name, eml_filename);
+      p = Ustrrchr(file_name, '/');
       if (p)
         *p = '\0';
       fits = string_format(commandline, sizeof(commandline), CS
cmdline_scanner, file_name);



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