Verified Commit d35c303e authored by 4lDO2's avatar 4lDO2 🖖
Browse files

Implement chroot as always returning EPERM.

parent d69c1154
......@@ -88,9 +88,14 @@ pub unsafe extern "C" fn chdir(path: *const c_char) -> c_int {
Sys::chdir(path)
}
// #[no_mangle]
#[no_mangle]
pub extern "C" fn chroot(path: *const c_char) -> c_int {
unimplemented!();
// TODO: Implement
unsafe {
platform::errno = crate::header::errno::EPERM;
}
-1
}
#[no_mangle]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment