bytecodealliance / bytecodealliance/cap-std

Use F_KINFO on FreeBSD 13.1

Đang mở
#331 0 bình luận 2 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Rust
Star
821
Fork
57
Merge trung bình
1 giờ 16 phút
Pull request đã merge (30 ngày)
4

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.