Function nc::chroot[][src]

pub fn chroot(filename: &str) -> Result<(), Errno>
Expand description

Change the root directory.

let ret = nc::chroot("/");
assert!(ret.is_err());
assert_eq!(ret, Err(nc::EPERM));