bytecodealliance / bytecodealliance/cap-std

Use F_KINFO on FreeBSD 13.1

オープン
#331 コメント 0 件 リアクション 2 件 担当者 0 名 GitHub で見る
主要言語
Rust
スター
821
フォーク
57
平均マージ
1時間 16分
マージ済み PR(30日)
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。