feat: add cwd tracking to kernel, remove shell hack, update system utilities to use getcwd, fix tcc libc stub, fix nonexistent directory issue

This commit is contained in:
daniel committed 2026-03-25 15:45:22 +01:00
1 parent 38ac914de6
commit 1c0db774f6
22 files changed
+389 -265

No files matched your search

+5 -1
View File
@@ -11,11 +11,15 @@
#include "Syscall.hpp"
#include "Common.hpp"
#include "Path.hpp"
namespace Montauk {
static int Sys_SpawnRedir(const char* path, const char* args) {
int childPid = Sched::Spawn(path, args);
char resolved[256];
if (!ResolveProcessPath(path, resolved, sizeof(resolved))) return -1;
int childPid = Sched::Spawn(resolved, args);
if (childPid < 0) return -1;
auto* child = Sched::GetProcessByPid(childPid);