diff --git a/kernel/src/sys/id.cpp b/kernel/src/sys/id.cpp index 5fe236b3..899e1fb2 100644 --- a/kernel/src/sys/id.cpp +++ b/kernel/src/sys/id.cpp @@ -116,7 +116,7 @@ Result 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);