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:
1 parent
38ac914de6
commit
1c0db774f6
22 files changed
+389
-265
No files matched your search
@@ -347,6 +347,12 @@ namespace Montauk {
|
||||
case SYS_GETUSER:
|
||||
if (!ValidUserPtr(frame->arg1)) return -1;
|
||||
return Sys_GetUser((char*)frame->arg1, frame->arg2);
|
||||
case SYS_GETCWD:
|
||||
if (!ValidUserPtr(frame->arg1)) return -1;
|
||||
return Sys_GetCwd((char*)frame->arg1, frame->arg2);
|
||||
case SYS_CHDIR:
|
||||
if (!ValidUserPtr(frame->arg1)) return -1;
|
||||
return Sys_Chdir((const char*)frame->arg1);
|
||||
default:
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user