kernel: Make chown() search in the process's current directory
This commit is contained in:
parent
60c6e764a4
commit
bd60c65e17
@ -116,7 +116,7 @@ Result<u64> sys_chown(Registers*, SyscallArgs args)
|
|||||||
|
|
||||||
Credentials& auth = Scheduler::current()->auth;
|
Credentials& auth = Scheduler::current()->auth;
|
||||||
|
|
||||||
auto inode = TRY(VFS::resolve_path(path.chars(), auth));
|
auto inode = TRY(VFS::resolve_path(path.chars(), auth, Scheduler::current()->current_directory));
|
||||||
|
|
||||||
if (auth.euid != 0) return err(EPERM);
|
if (auth.euid != 0) return err(EPERM);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user