Skip to content
Snippets Groups Projects
Verified Commit d35c303e authored by Jacob Lorentzon's avatar Jacob Lorentzon :speech_balloon:
Browse files

Implement chroot as always returning EPERM.

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