You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by pa...@apache.org on 2005/07/12 07:31:31 UTC

svn commit: r215926 - /spamassassin/trunk/masses/mass-check

Author: parker
Date: Mon Jul 11 22:31:30 2005
New Revision: 215926

URL: http://svn.apache.org/viewcvs?rev=215926&view=rev
Log:
Bug 4461: Trivial bits from the rest of the patch, need to check status of open, otherwise bad things can happen.

Modified:
    spamassassin/trunk/masses/mass-check

Modified: spamassassin/trunk/masses/mass-check
URL: http://svn.apache.org/viewcvs/spamassassin/trunk/masses/mass-check?rev=215926&r1=215925&r2=215926&view=diff
==============================================================================
--- spamassassin/trunk/masses/mass-check (original)
+++ spamassassin/trunk/masses/mass-check Mon Jul 11 22:31:30 2005
@@ -205,7 +205,7 @@
 
   # zeroed scores to mass_prefs
   my @zero = sort grep { defined $reuse{$_}->{skip} } keys %reuse;
-  open(PREFS, ">> $opt_p/mass_prefs");
+  open(PREFS, ">> $opt_p/mass_prefs") || die "Unable to open $opt_p/mass_prefs: $!\nNeeded for --reuse to work properly";
   for my $zero (@zero) {
     print PREFS "score $zero 0\n";
   }