kernel: Make chown() search in the process's current directory

This commit is contained in:
apio 2023-04-13 18:20:07 +02:00
parent 60c6e764a4
commit bd60c65e17
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -116,7 +116,7 @@ Result<u64> sys_chown(Registers*, SyscallArgs args)
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);