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:20 UTC
svn commit: r1815773 -
/spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm
Author: billcole
Date: Mon Nov 20 05:09:20 2017
New Revision: 1815773
URL: http://svn.apache.org/viewvc?rev=1815773&view=rev
Log:
Prevent BodyRuleBaseExtractor from orphaning files in sa-compile runs
Modified:
spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm
Modified: spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm
URL: http://svn.apache.org/viewvc/spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm?rev=1815773&r1=1815772&r2=1815773&view=diff
==============================================================================
--- spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm (original)
+++ spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm Mon Nov 20 05:09:20 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.