https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7138

--- Comment #5 from Bill Cole <[email protected]> ---
Obvious problem:

# grep -C2 -n 'error closing pipe' BodyRuleBaseExtractor.pm
529-  defined $nread  or die "error reading from pipe: $!";
530-
531:  close IN      or die "error closing pipe: $!";
532-  unlink $tmpf  or die "cannot unlink $tmpf: $!";
533-  defined $fullstr  or warn "empty result from a pipe";

Solution options:

1. Fix this code by complicating it so that both the close & unlink get tried
and die with suitable messages if either or both fail.
2. Fix tempfile creation by putting all tempfiles in the directory that gets
'rm -rf'd near the end 

Working on #2, as it seems cleaner.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to