Skip to content
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

stat fails on invalid symbolic link - should use lstat #1287

Open
BobFrankston opened this issue Aug 19, 2023 · 0 comments
Open

stat fails on invalid symbolic link - should use lstat #1287

BobFrankston opened this issue Aug 19, 2023 · 0 comments

Comments

@BobFrankston
Copy link

BobFrankston commented Aug 19, 2023

the stat function fails on an invalid symbolic link -- one for which the target is unavailable. lstat can be used to get the link's status without following it, thus avoiding the error. For watching there shouldn't be a need to follow links. I see the code tries both stat and lstat -- the failure of stat should not be fatal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant