[Mimedefang] HEADS UP, bug in spamassassin versions 2.50 -> 2.63

Chris Myers chris at by-design.net
Thu Aug 5 11:38:40 EDT 2004


Here's the patch again, as an attachment.  Hopefully this will help folks
experiencing text-wrapping problems.

This patch is against SpamAssassin 2.64, but can also be applied against
version 2.63 (patch will report that a hunk succeeded at an offset of -42
lines).

Chris Myers
Networks By Design

----- Original Message ----- 
From: "Patrik Andersin" <cat at iki.fi>
To: <mimedefang at lists.roaringpenguin.com>
Sent: Sunday, August 01, 2004 12:57 PM
Subject: [Mimedefang] HEADS UP, bug in spamassassin versions 2.50 -> 2.63


> There is an nasty umask bug in spamassasin version 2.50 - 2.63 which
> effectively disables virus scanning in mimedefang if
>
>  a. you use sa's bayesian auto learn (which triggers the bug)
> and
>  b. you run your virusscanner with different uid than mimedefang.
>
>
> The bug is in sa's UnixLocker.pm module in line 47:
>
>   my $umask = 077;  ### <- BUG HERE!! shoud be: my $umask = umask 077;
>   if (!open(LTMP, ">$lock_tmp")) {
>       umask $umask;
>       die "lock: $$ cannot create tmp lockfile $lock_tmp for $lock_file:
$!\n";
>   }
>   umask $umask;
>
>
> What happens is that after first auto learn, all new working files
> created by mimedefang.pl are created with umask 077 and im my case
> clamd cannot access those files any longer.
>
> Bug report filed:
> http://bugzilla.spamassassin.org/show_bug.cgi?id=3653
>
> //patrik
> -- 
> cat at iki.fi
> _______________________________________________
> Visit http://www.mimedefang.org and http://www.canit.ca
> MIMEDefang mailing list
> MIMEDefang at lists.roaringpenguin.com
> http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: spamassassin-2.64.umask.patch.txt
URL: <https://lists.mimedefang.org/pipermail/mimedefang_lists.mimedefang.org/attachments/20040805/9b1266a1/attachment.txt>


More information about the MIMEDefang mailing list