Bug 1170187
Summary: | Problems when using ftruncate on files opened in append mode | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Jan Kurik <jkurik> |
Component: | glibc | Assignee: | Carlos O'Donell <codonell> |
Status: | CLOSED ERRATA | QA Contact: | Arjun Shankar <ashankar> |
Severity: | urgent | Docs Contact: | |
Priority: | urgent | ||
Version: | 7.0 | CC: | amascari, ashankar, bgollahe, codonell, djdumas, fche, fdanapfe, fweimer, helge.deller, law, linux, lmiccini, mcermak, michael.trapp, michele, mnewsome, pfrankli, pm-eus, spoyarek, vanhoof |
Target Milestone: | rc | Keywords: | Regression, ZStream |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | glibc-2.17-55.el7_0.2 | Doc Type: | Bug Fix |
Doc Text: |
If a file stream open in append mode and its underlying file descriptor are used in tandem and the file is truncated using the ftruncate function on the file descriptor, a subsequent ftell call on the stream incorrectly modifies the file offset by seeking to the new end of the file. This fix now ensures that ftell modifies the stream state only when it is in append mode and the buffer for the stream is not empty.
|
Story Points: | --- |
Clone Of: | 1156331 | Environment: | |
Last Closed: | 2014-12-18 20:31:45 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: | 1156331 | ||
Bug Blocks: |
Description
Jan Kurik
2014-12-03 13:26:22 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2014-2023.html |