Message.pm patch for Mydoom O

David Jacobson davidj at IMPOL.NET
Wed Jul 28 07:12:26 IST 2004


Hi,

I'm running MailScanner 4.28.6

When copying Message.pm.patch to /usr/lib/MailScanner/MailScanner and
executing the following command:

patch -p0 < Message.pm.patch

I get...

patching file Message.pm
Hunk #1 FAILED at 1418.
Hunk #2 succeeded at 1240 with fuzz 2 (offset -193 lines).
Hunk #3 FAILED at 1249.
Hunk #4 succeeded at 1458 with fuzz 2.
2 out of 4 hunks FAILED -- saving rejects to file Message.pm.rej

Message.pm.rej contains

***************
*** 1418,1424 ****
    return 1 if ($name =~ m{^\.+\Z});         ### dots
    return 1 if ($name =~ tr{
\%\(\)\+\,\-\.0-9\=A-Z_a-z\{\}\x80-\xFF}{}c);
    return 1 if (length($name) > 50);
-   return 1 if (-e "$dir/$name");

    #print STDERR "It is okay\n";
    #$self->debug("it's ok");
--- 1418,1424 ----
    return 1 if ($name =~ m{^\.+\Z});         ### dots
    return 1 if ($name =~ tr{
\%\(\)\+\,\-\.0-9\=A-Z_a-z\{\}\x80-\xFF}{}c);
    return 1 if (length($name) > 50);
+   return 'exists' if (-e "$dir/$name");

    #print STDERR "It is okay\n";
    #$self->debug("it's ok");
***************
*** 1248,1253 ****
      $last =~ s/^\s+//;
      $last =~ s/\s+\Z//;
      $last =~ tr/ \%\(\)\+\,\-\.0-9\=A-Z_a-z\{\}\x80-\xFF//cd;
      return $last unless $self->IsNameEvil($last, $dir);

      ### Break last element into root and extension, and truncate:
--- 1249,1255 ----
      $last =~ s/^\s+//;
      $last =~ s/\s+\Z//;
      $last =~ tr/ \%\(\)\+\,\-\.0-9\=A-Z_a-z\{\}\x80-\xFF//cd;
+     #print STDERR "MakeNameSafe: 2 $fname,$last\n";
      return $last unless $self->IsNameEvil($last, $dir);

      ### Break last element into root and extension, and truncate:

Any help appreciated :)

Kind regards,

David Jacobson
Network Security Administrator
RHCE

Imperial Online - The Imperial Connection

Switchboard (+27) 11 723-8000
Helpdesk (+27) 11 723-8181
Mobile  (+27) 83 235-0760
Facsimile (+27) 11 454 1236
Email  davidj at impol.net

www.imperialonline.co.za / www.imperialtoday.co.za

Confidentiality Notice:
This communication and the information it contains are intended for the
person(s) or organisation(s) named above and for no other person(s) or
organisation(s).
The content of this communication may be confidential, legally privileged
and protected. Unauthorised use, copying or disclosure of any part of this
communication may be unlawful.

-------------------------- MailScanner list ----------------------
To leave, send    leave mailscanner    to jiscmail at jiscmail.ac.uk
Before posting, please see the Most Asked Questions at
http://www.mailscanner.biz/maq/     and the archives at
http://www.jiscmail.ac.uk/lists/mailscanner.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20040728/b9a5f214/attachment.html


More information about the MailScanner mailing list