Bug 842040
| Summary: | df -P gives new lines when where '\n' is in any of the /proc/mounts fields. | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Antony Peter <anpeter> |
| Component: | coreutils | Assignee: | Ondrej Vasik <ovasik> |
| Status: | CLOSED ERRATA | QA Contact: | Tomas Dolezal <todoleza> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.2 | CC: | azelinka, kdudka, ooprala, ovasik, pbrady, pyaduvan, rrajaram, swaikar, tlavigne, todoleza |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | coreutils-8.4-28.el6 | Doc Type: | Bug Fix |
| Doc Text: |
Cause:
Command df interpreted control characters in the output mount point name.
Consequence:
It's awkward to read and problematic for scripts when
control characters like '\n' are output.
Fix:
Problematic characters are hidden/replaced by "?"
Result:
Output with problematic characters is no longer hard to read.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-11-21 20:58:36 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Antony Peter
2012-07-21 07:40:05 UTC
A clarification comment. /etc/mtab contains \012 but glibc will convert the \012 back to \n before sending to df. So the patch is needed to stop df outputting erroneous new lines. (In reply to comment #5) > So the patch is needed to stop df outputting erroneous new lines. You mean a patch to escape special chars back to octal notation? Sorry. The upstream patch is needed http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=3ed70fd5 That will convert control chars to to '?' As a side effect it will keep df from outputting \n df will not get octal escapes due to the processing done by glibc df will not output octal escapes for backwards compatibility reasons Oops, I somehow overlooked the link in comment #0. That should do the job. Thanks! This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate, in the next release of Red Hat Enterprise Linux. 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. http://rhn.redhat.com/errata/RHSA-2013-1652.html |