Function nc::chroot[][src]

pub fn chroot<P: AsRef<Path>>(filename: P) -> Result<(), Errno>
Expand description

Change the root directory.

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