-
-
Notifications
You must be signed in to change notification settings - Fork 849
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
help: mention that fd detects executables by file permissions #1106
Comments
I was not aware of this behavior. I think we should probably change the behavior of |
I'd be in favor of that. We can use the same library we do on Windows since #1061 |
As the last comment suggest I've made a pull request to use the faccess library, |
The easiest test is something like |
@Ptipiak Writing an integration test for this would be great. |
Hi, I though about it right away, although I'm not sure how to create a file with a specific chmod in Rust, I might need to add a package |
I think nix has chmod function, although you might need to enable an additional feature for it. |
Detecting an executable efficiently is not simple: https://stackoverflow.com/questions/4458120/search-for-executable-files-using-find-command
fd uses the executable bit of the file permissions, which should be mentioned in the help page.
The text was updated successfully, but these errors were encountered: