Bug 9163
Summary: | ln -sf doesn't change symlink to directory | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Peter J. Holzer <hjp> |
Component: | fileutils | Assignee: | Bernhard Rosenkraenzer <bero> |
Status: | CLOSED NOTABUG | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.1 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2000-02-06 19:30:53 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: |
Description
Peter J. Holzer
2000-02-06 19:02:05 UTC
Oops, I found the link :-) It is created inside of the directory: % ll b total 0 lrwxrwxrwx 1 hjp hjp 1 Feb 6 19:47 a -> a Not very useful. I still think this is a bug. Actually it's not a bug. At the time a and b are created as directories, c is still a symlink to b, so at this point, c is a directory as well. As expected and documented, ln -sf file directory is the same as ln -sf file directory/file - it's the way ln works (100% the same thing cp does). |