syscalls: make execve and vfs_read_file_by_path use follow_path, fix vfs_read_file_by_path name, fix execve-related pagefault
This commit is contained in:
@@ -292,7 +292,7 @@ int sys_execve(TrapFrame *tf) {
|
||||
}
|
||||
|
||||
uint8_t* file_buffer;
|
||||
int err = vsf_read_file_by_path(filename, &file_buffer, root_dir);
|
||||
int err = vfs_read_file_by_path(filename, &file_buffer);
|
||||
if (err != 0) {
|
||||
debug_log("execve: failed to read file '%s'\n", filename);
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user