mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 09:53:24 +00:00
Prefer Context::get_user_space
than CurrentUserSpace::get
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
8cf7063150
commit
38b46f7ac3
@ -31,7 +31,7 @@ pub fn sys_fchmodat(
|
||||
/* flags: u32, */
|
||||
ctx: &Context,
|
||||
) -> Result<SyscallReturn> {
|
||||
let path = CurrentUserSpace::get().read_cstring(path_ptr, PATH_MAX)?;
|
||||
let path = ctx.get_user_space().read_cstring(path_ptr, PATH_MAX)?;
|
||||
debug!("dirfd = {}, path = {:?}, mode = 0o{:o}", dirfd, path, mode,);
|
||||
|
||||
let dentry = {
|
||||
|
Reference in New Issue
Block a user