Bug 1072103
| Summary: | ln -s --relative is borked | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Lennart Poettering <lpoetter> |
| Component: | coreutils | Assignee: | Ondrej Vasik <ovasik> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 20 | CC: | admiller, harald, kdudka, kzak, ooprala, ovasik, pbrady, p, twaugh |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | coreutils-8.21-21.fc20 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-03-07 06:34:38 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
Lennart Poettering
2014-03-03 22:42:53 UTC
simplified testcase:
$ mkdir /tmp/test
$ cd /tmp/test
$ tree
.
|-- a
`-- b
2 directories, 0 files
$ ln -srf a b/c
$ tree
.
|-- a
`-- b
`-- c -> ../a
3 directories, 0 files
$ ln -srf a b/c
$ tree
.
|-- a
| `-- a -> .
`-- b
`-- c -> ../a
4 directories, 0 files
I'm rushing now, but the test cases above confuse me a bit. Anyway for idempotentency of symlinks I always use -nfs (easy to remember :)). So we did fix a related issue last year: http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=e52293aa That's in v8.22 (rawhide) Without that fix, and with Harald's test case: $ ln-8.21 -nfs -r a b/c $ tree . |-- a `-- b `-- c -> ../a 3 directories, 0 files $ ln-8.21 -nfs -r a b/c $ tree . |-- a `-- b `-- c -> a 2 directories, 1 file With that fix, and rerunning Harald's test case: $ ln-8.22 -nfs -r a b/c $ tree . |-- a `-- b `-- c -> ../a 3 directories, 0 files $ ln-8.22 -nfs -r a b/c $ tree . |-- a `-- b `-- c -> ../a 3 directories, 0 files looks good! coreutils-8.21-21.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/coreutils-8.21-21.fc20 Package coreutils-8.21-21.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing coreutils-8.21-21.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-3488/coreutils-8.21-21.fc20 then log in and leave karma (feedback). coreutils-8.21-21.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. |