-
Notifications
You must be signed in to change notification settings - Fork 5
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
Permission Denied on linux #9
Comments
I tried to debug where this error comes from and I have found this place |
I have found some solution by filtering error_kind == PermissionDenied let dir_fd = match dir_fd {
Ok(fd) => fd,
Err(e) if e.kind() == ErrorKind::PermissionDenied => {
continue;
}
Err(e) => return Err(Box::new(e)),
}; I can create PR with fix if you are interested |
Hey @jacek-kurlit thank you so much for this ticket and for your solution, you can feel free to open a PR and I'll be happy to merge. |
Actually you can skip all kind of errors... a change I should apply also in other places of the code is to ignore all the errors that are related to a specific process but that don't compromise other processes. |
Hi! I have created PR #10 I didn't go as far to ignore all errors as I wasn't sure if this is good idea to swallow error without any info for lib user. |
Hello,
When I try to use this create I receive error
{ code: 13, kind: PermissionDenied, message: "Permission denied" }
All I do is calling
let ports = listeners::get_all();
I'm using fedora 40, is there any limitation on linux systems?
I want to use this create in my tool but I cannot force user to run as root
The text was updated successfully, but these errors were encountered: