Mailing List Archive

svn commit: rev 6672 - incubator/spamassassin/trunk/lib/Mail/SpamAssassin
Author: felicity
Date: Sun Feb 15 17:12:42 2004
New Revision: 6672

Modified:
incubator/spamassassin/trunk/lib/Mail/SpamAssassin/BayesStoreDBM.pm
Log:
bug 2635: if the bayes_journal file can't be opened for some reason, spit out the error string from the system call.

Modified: incubator/spamassassin/trunk/lib/Mail/SpamAssassin/BayesStoreDBM.pm
==============================================================================
--- incubator/spamassassin/trunk/lib/Mail/SpamAssassin/BayesStoreDBM.pm (original)
+++ incubator/spamassassin/trunk/lib/Mail/SpamAssassin/BayesStoreDBM.pm Sun Feb 15 17:12:42 2004
@@ -853,7 +853,7 @@
my $conf = $self->{bayes}->{main}->{conf};
my $umask = umask(0777 - (oct ($conf->{bayes_file_mode}) & 0666));
if (!open (OUT, ">>".$path)) {
- warn "cannot write to $path, Bayes db update ignored\n";
+ warn "cannot write to $path, Bayes db update ignored: $!\n";
umask $umask; # reset umask
return;
}