bytecodealliance / bytecodealliance/cap-std
Use F_KINFO on FreeBSD 13.1
未关闭
- 主要语言
- Rust
- 星标
- 821
- 派生
- 57
- 平均合并
- 1 小时 16 分钟
- 30 天内合并 PR
- 4
描述
FreeBSD 13.1 introduced an `F_KINFO` fcntl command, which looks up a file descriptor's path. It's exactly what cap-primitives/rustix/fs/file_path needs. It's much more efficient than file_path_by_searching, and isn't vulnerable to the #330 bug. However, it can fail in certain circumstances, so file_path_by_searching should still be used as a fallback.
https://man.freebsd.org/cgi/man.cgi?query=fcntl&sektion=2
贡献指南
评估
这个 Issue 还没有评估数据。