You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by fe...@apache.org on 2004/09/02 23:18:01 UTC

svn commit: rev 37426 - spamassassin/trunk/lib/Mail/SpamAssassin/BayesStore

Author: felicity
Date: Thu Sep  2 14:18:01 2004
New Revision: 37426

Modified:
   spamassassin/trunk/lib/Mail/SpamAssassin/BayesStore/DBM.pm
Log:
bug 3742: fixes the bug introduced in rc2 via bug 3731.  'untie attempted while 1 inner references still exist'

Modified: spamassassin/trunk/lib/Mail/SpamAssassin/BayesStore/DBM.pm
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/BayesStore/DBM.pm	(original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/BayesStore/DBM.pm	Thu Sep  2 14:18:01 2004
@@ -366,6 +366,7 @@
           (oct ($main->{conf}->{bayes_file_mode}) & 0666);
     umask $umask;
     return 0 unless $res;
+    undef $res;
 
     # add the magic tokens to the new db.
     $new_toks{$NSPAM_MAGIC_TOKEN} = $self->{db_toks}->{$DB_NSPAM_MAGIC_TOKEN};
@@ -431,6 +432,7 @@
 	 (oct ($main->{conf}->{bayes_file_mode}) & 0666);
     umask $umask;
     return 0 unless $res;
+    undef $res;
 
     dbg ("bayes: upgraded database format from v".$self->{db_version}." to v2 in ".(time - $started)." seconds");
     $self->{db_version} = 2; # need this for other functions which check
@@ -462,6 +464,7 @@
           (oct ($main->{conf}->{bayes_file_mode}) & 0666);
     umask $umask;
     return 0 unless $res;
+    undef $res;
 
     # add the magic tokens to the new db.
     $new_toks{$NSPAM_MAGIC_TOKEN} = $self->{db_toks}->{$DB_NSPAM_MAGIC_TOKEN};
@@ -515,6 +518,7 @@
 	 (oct ($main->{conf}->{bayes_file_mode}) & 0666);
     umask $umask;
     return 0 unless $res;
+    undef $res;
 
     dbg ("bayes: upgraded database format from v".$self->{db_version}." to v3 in ".(time - $started)." seconds");