| Summary: | find -type l does not find soft links | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | George R. Goffe <grgoffe> |
| Component: | findutils | Assignee: | Kamil Dudka <kdudka> |
| Status: | CLOSED INSUFFICIENT_DATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 22 | CC: | grgoffe, kdudka |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-01-18 11:41:08 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: | |
|
Description
George R. Goffe
2016-01-11 09:03:24 UTC
This works fine on my Fedora 22 box with findutils-4.5.14-6.fc22.x86_64. Please provide self-contained steps to reproduce. 1.mkdir /export/home/lsd 2.ln -s export/home/lsd . 3.find . -type l -ls 4.notice that soft link "lsd" is not found Kemil, findf is an alias that has the "-xdev" flag set. The intent is to NOT go out to another filesystem for finding. Does "-xdev" prohibit the display of the link in the "current" filesystem? I think it should NOT since the link IS in the "current" filesystem... it just POINTS to another filesystem. George... It works for me with -xdev too. Did you try it in a fresh directory? Fresh file system? What are actually the file systems involved? Did you try it with different file systems? Did you try it with a different version of findutils? Kamil, After investigating your suggestions I found that the find command is an alias in my .bashrc file. findl was invoking this find alias which was somehow causing the softlinks to NOT appear. I think there's a bug here but don't know for sure. Maybe in find? Maybe in bash? Regards and thanks for your help and your time, George... You can use 'set -x' in bash to see the actual command being invoked after alias expansion. Then you can use the expanded command directly for further debugging. I am closing the bug because I was not able to reproduce it based on the info above. Feel free to reopen it with clear steps to reproduce... |