Bug 63094 - Upgrading to perl-5.6.1 breaks cleanfeed filter_innd.pl
Upgrading to perl-5.6.1 breaks cleanfeed filter_innd.pl
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: cleanfeed (Show other bugs)
7.1
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Florian La Roche
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-04-09 19:31 EDT by James Antill
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-04-09 19:31:15 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description James Antill 2002-04-09 19:31:10 EDT
Description of Problem:
 In perl 5.6.1 perl will error if you try to alter a read-only variable with tr
even if the text is the same as the source (Ie. "123" =~ tr/1/1/; is now an
error/exception). However this was (and still is) documented as a way to count
the number of characters of type X and cleanfeed (filter_innd.pl) uses this
idiom with a read-only variable on line 572.

Additional Information:

 Here is how I fixed cleanfeed...
	
{ my $tmp = $hdr{'__BODY__'};
        $lines = $tmp =~ tr/\n/\n/; }
# The tr doesn't work because __BODY__ is readonly
# $lines = $hdr{'__BODY__'} =~ tr/\n/\n/;
Comment 1 Florian La Roche 2002-04-15 15:56:55 EDT
This is already fixed in the current rpm.

Thanks,

Florian La Roche

Note You need to log in before you can comment on or make changes to this bug.