Bug 240298
Summary: | ls -x broken | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Gary Benson <gbenson> | ||||
Component: | coreutils | Assignee: | Tim Waugh <twaugh> | ||||
Status: | CLOSED ERRATA | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | rawhide | CC: | meyering, stephen.moehle | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i386 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | 6.9-3.fc7 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2007-06-27 03:53:14 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: | 236808 | ||||||
Attachments: |
|
Description
Gary Benson
2007-05-16 12:33:02 UTC
Thanks for the report. This was fixed upstream, but is not in a stable release: NEWS: ls -x DIR would sometimes output the wrong string in place of the first entry. [introduced in coreutils-6.8] Here's the upstream fix: http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=a3b65a63a0e Created attachment 154815 [details]
Better fix?
Yeah, that's the one. Does the upstream fix work when there is nothing to
list? It looks like sorted_file[0] would be some random pointer in that case.
FWIW this is the fix I came up with (based on what's in F7, not upstream).
Hi Gary, Good point: that patch is a little fragile. However, it does appear to work even in that case, since when there are no entries to list, cwd_n_used is 0, in which case print_horizontal cannot be called. But if you find a way to make ls misbehave, please let me know. Ah, that would explain it. *** Bug 242197 has been marked as a duplicate of this bug. *** coreutils-6.9-3.fc7 has been pushed to the Fedora 7 testing repository. If problems still persist, please make note of it in this bug report. coreutils-6.9-3.fc7 has been pushed to the Fedora 7 stable repository. If problems still persist, please make note of it in this bug report. |