![](/style/images/good.png)
![](/style/images/bad.png)
Github Add std::os::unix::fs::chroot to change the root directory of the current...
source link: https://github.com/rust-lang/rust/pull/84716
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
This is a straightforward wrapper that uses the existing helpers for C
string handling and errno handling.
Having this available is convenient for UNIX utility programs written in
Rust, and avoids having to call the unsafe libc::chroot
directly and
handle errors manually, in a program that may otherwise be entirely safe
code.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK