| Summary: | hardlink skips certain "dot" files | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | todd_lewis | ||||
| Component: | hardlink | Assignee: | Francisco Javier Tsao SantÃn <tsao> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | low | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 25 | CC: | jzeleny, tsao | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | hardlink-1.3-1.fc26 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2017-04-27 20:54:31 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: | |||||
| Attachments: |
|
||||||
Created attachment 1150503 [details]
patch to optionally include dotfiles with six character extension
This proposed patch adds a flag to bypass the bizarre default behavior of skipping dotfiles with six character extensions. Chose to do it this way so the the default behavior does not change (in the off chance somebody is doing this on purpose). Applies against current HEAD.
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. This message is a reminder that Fedora 23 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 23. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '23'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 23 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. hardlink-1.3-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-db1d0d0f9c hardlink-1.3-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-db1d0d0f9c hardlink-1.3-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report. |
Description of problem: File names that start with "." and end with a different "." followed by exactly 6 non-periods are skipped Version-Release number of selected component (if applicable): hardlink-1.0-22 How reproducible: Always Steps to Reproduce: 1. hardlink -v foo 2. 3. Actual results: Skipping foo/google-chrome/.com.google.Chrome.y7Yk64 Skipping foo/google-chrome/Default/.com.google.Chrome.PoAF6r Skipping foo/selinux/targeted/.policy.sha512 ... Expected results: Files matching pattern should be eligible for hardlinking. Additional info: There is explicit code to skip dot files that have more than one dot and a 6-character extension. This should either be removed from the code, or explained in the man page and/or made optional. It's such a bizarre thing that it must have served a purpose at one point, though I can't imagine what that was. At least it does print a message that the file(s) were skipped if the -v flag is given. q = strrchr (di->d_name, '.'); if (q && strlen (q) == 7 && q != di->d_name) { nam1.buf[nam1baselen] = 0; if (verbose) fprintf(stderr, "Skipping %s%s\n", nam1.buf, di->d_name); continue; }