9

Github Add std::os::unix::fs::chroot to change the root directory of the current...

 3 years ago
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.

Copy link

Member

joshtriplett commented 8 days ago

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.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK