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:
2025-10-07 23:41:55 +03:00
parent 8c26f54d28
commit 88c1936e83
5 changed files with 11 additions and 14 deletions
+1 -1
View File
@@ -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;