You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by bi...@apache.org on 2017/11/20 05:09:07 UTC
svn commit: r1815772 -
/spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm
Author: billcole
Date: Mon Nov 20 05:09:06 2017
New Revision: 1815772
URL: http://svn.apache.org/viewvc?rev=1815772&view=rev
Log:
Prevent BodyRuleBaseExtractor from orphaning files in sa-compile runs
Modified:
spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm
Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm
URL: http://svn.apache.org/viewvc/spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm?rev=1815772&r1=1815771&r2=1815772&view=diff
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm Mon Nov 20 05:09:06 2017
@@ -528,8 +528,8 @@ sub extract_hints {
while ( $nread=read(IN,$inbuf,16384) ) { $fullstr .= $inbuf }
defined $nread or die "error reading from pipe: $!";
- close IN or die "error closing pipe: $!";
unlink $tmpf or die "cannot unlink $tmpf: $!";
+ close IN or die "error closing pipe: $!";
defined $fullstr or warn "empty result from a pipe";
# now parse the -Mre=debug output.