Fix relibc exec thisproc usage.

This commit is contained in:
4lDO2
2024-12-27 16:46:03 +01:00
parent 1cd450a9ae
commit bd68da3df9
+1 -1
View File
@@ -244,7 +244,7 @@ pub fn execve(
// threads, it could still be allowed by keeping certain file descriptors and instead
// set the active file table.
let files_fd =
File::new(syscall::open("/scheme/thisproc/current/filetable", O_RDONLY)? as c_int);
File::new(syscall::dup(**RtTcb::current().thread_fd(), b"filetable")? as c_int);
for line in BufReader::new(files_fd).lines() {
let line = match line {
Ok(l) => l,