You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2004/08/01 19:14:41 UTC
[Bug 3653] New: umask gets overwriten in UnixLocker.pm
http://bugzilla.spamassassin.org/show_bug.cgi?id=3653
Summary: umask gets overwriten in UnixLocker.pm
Product: Spamassassin
Version: 2.63
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P2
Component: Libraries
AssignedTo: spamassassin-dev@incubator.apache.org
ReportedBy: spambug@cat.iki.fi
It took several hours to work out what was wrong with my
mimedefang - sa - clamav configuration. After sa:s bayesian auto
learn kicked in, clamav stopped scanning.
It turned out to be a bug in UnixLocker.pm line 47:
my $umask = 077; ### <- BUG HERE!! should 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;
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.