Bug 230052
Summary: | ls -lL displays dangling symlinks with full path | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Emmanuel Thomé <emmanuel.thome> |
Component: | coreutils | Assignee: | Tim Waugh <twaugh> |
Status: | CLOSED ERRATA | QA Contact: | |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 6 | CC: | meyering |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 5.97-12.5.fc6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-04-19 08:25:16 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: | 207681 |
Description
Emmanuel Thomé
2007-02-26 10:47:35 UTC
Thanks for the report. FYI, this is fixed in newer versions. With coreutils-6.7-8.fc7, I get this: $ mkdir a ; touch a/b ; ln -s d a/c ; /bin/ls -lL a /bin/ls: cannot access a/c: No such file or directory total 0 -rw-r--r-- 1 meyering meyering 0 Feb 26 11:53 b l????????? ? ? ? ? ? c I'll add this to the list of things to backport to FC-6. Thanks, Tim. BTW, here's the upstream patch that fixed it: http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=9e0a095be64 Actually it turned out that the real bug was in the SELinux patch. Here is that fix: --- coreutils-5.97/src/ls.c 2006-10-03 17:18:16.000000000 +0100 +++ coreutils-5.97/src/ls.c 2006-10-03 17:18:16.000000000 +0100 @@ -2690,7 +2690,7 @@ f->filetype = type; memset (&f->stat, '\0', sizeof (f->stat)); - f->name = xstrdup (absolute_name); + f->name = xstrdup (name); files_index++; return 0; Fixed in update: coreutils-5.97-12.5.fc6 |