Bug 185623
Summary: | tell doesn't return right value when appending | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 3 | Reporter: | Bastien Nocera <bnocera> | ||||||
Component: | perl | Assignee: | Jason Vas Dias <jvdias> | ||||||
Status: | CLOSED ERRATA | QA Contact: | David Lawrence <dkl> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 3.0 | CC: | prockai | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | RHBA-2006-0294 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2006-05-10 21:57:10 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 187539 | ||||||||
Attachments: |
|
Description
Bastien Nocera
2006-03-16 14:10:30 UTC
Created attachment 126221 [details]
perl-5.8.0-perlio-tell-bug-fix.patch
Rediff'ed patch from the upstream fix. It isn't enough to fix the bug though,
as the first tell after an open() is still broken:
# perl foo.pl
0
3
# perl foo.pl
0
6
I compared the code for flush, open and tell in the the current HEAD: http://public.activestate.com/cgi-bin/perlbrowse?file=perlio.c&rev= and with the patched version and couldn't find any significant differences to explain why it didn't fix it. Created attachment 126240 [details]
Patch which fixes issue in perl-5.8.0-90.9
Here's a patch which fixes the issue, which I'm applying in perl-5.8.0-90.9 .
The PerlIOUnix_open function also needed to lseek(fd,0,SEEK_END) if the file
was opened in append mode - this was fixed with a previous upstream patch.
Now fixed with perl-5.8.0-90.9, available from: http://people.redhat.com/~jvdias/perl/RHEL-3 An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2006-0294.html |