Bug 115167
Summary: | "-f" option ignored by "ln" | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Carlos Rodrigues <cefrodrigues> |
Component: | coreutils | Assignee: | Tim Waugh <twaugh> |
Status: | CLOSED NOTABUG | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 1 | CC: | bart.martens, mitr |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | athlon | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-02-08 16:39:58 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
Carlos Rodrigues
2004-02-07 15:28:16 UTC
I think this is not a bug. $ mkdir a b $ ln -s a c $ ln -sf b c $ ls -l total 8 drwxrwxr-x 2 bart bart 4096 Feb 8 11:30 a drwxrwxr-x 2 bart bart 4096 Feb 8 11:30 b lrwxrwxrwx 1 bart bart 1 Feb 8 11:30 c -> a $ ls -l c/ total 0 lrwxrwxrwx 1 bart bart 1 Feb 8 11:30 b -> b $ I see what you mean. I didn't notice that the second ln was creating a symlink called "b" inside directory "c". I almost sure that this behavior was introduced not long ago as I remember doing the kind of command sequence indicated above with the results I expected. The way to get the result I want is by doing "ln -sfn" to avoid dereferencing the existing symlink. I'm closing this but I feel that something should be done to make this explicit in the documentation (at least for those like me that expected the present behavior only when using "c/" instead of just "c"). |