exec: Respect the program's working directory
This commit is contained in:
parent
3a45f4af53
commit
7db215819e
@ -41,7 +41,7 @@ Result<u64> sys_execve(Registers* regs, SyscallArgs args)
|
||||
|
||||
// FIXME: Make sure argv & envp are not too big.
|
||||
|
||||
auto inode = TRY(VFS::resolve_path(path.chars(), current->auth));
|
||||
auto inode = TRY(VFS::resolve_path(path.chars(), current->auth, current->current_directory));
|
||||
|
||||
if (!VFS::can_execute(inode, current->auth)) return err(EACCES);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user